Help


#1

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

console;
absolute
None

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


#2

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?


#3

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 ')


#4

thanks appreciated @stetim94


#5

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