def abs():
     absolute =abs(-42) 
print 'absolute'


Oops, try again. Did you set absolute = abs(-42) ?


You don't have to define "abs()" btw. It already exists in Python.

And just look on the way you're printing your absolute. Are you printing a string or a variable?


uhm.. abs() is a built in function, so it sounds like a bad idea to create a abs function

Remove the def abs(): on line 1. Also, you should print the variable absolute not the string absolute (string is with ', variable is without ')


thanks appreciated @stetim94


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.