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


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


nah. I already do that way


Hi but its works fine try to refresh the page.


yeah I did that and see your reply :smiley:


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

You forgot the spaces before and after the =


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


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


thank you just refreshing worked