Understanding Errors When Using abs

Asked 5 months ago, Updated 5 months ago, 9 views

When you type abs(-100+200)/2,

TypeError Traceback (most recent call last)

TypeError: 'int' object is not callable

he said.
I want to calculate the absolute value normally, but I can't.
I'm a beginner, so I may have overlooked something, but I can't solve it no matter how many times I try.


2022-09-30 12:08

1 Answers

Didn't you define a variable called abs in front of that code?
Rename the variable if you have defined it

2022-09-30 12:08

If you have any answers or tips

© 2023 OneMinuteCode. All rights reserved.