Abs()


#1

Why this isn't working?


  1. absolute = abs(-42)
  2. print absolute


Traceback (most recent call last):
File "python", line 1, in
TypeError: 'int' object is not callable



#2

What is on line 1? That is causing an error.


#3

nah. I already do that way


#4

Hi but its works fine try to refresh the page.


#5

yeah I did that and see your reply :smiley:


#6

1.
2. absolute = abs(-42)
3.
4. print absolute

You forgot the spaces before and after the =


#8

That worked thanks forbesy3000 (I accidentally inserted numbers as well but got rid of them and all was good :grin:)


#9

I did it the way it says over here and it doesn't work. Is there something I missed?


#10

thank you just refreshing worked