I was doing the last sections for the lesson functions (19.)
I tried to be a little creative with my code and tried:
def distance_from_zero(x): if type(x) == int or type(x) == float: return abs(x) else: return "Nope" print distance_from_zero(raw_input)
However, the interpreter is still evaluating my code to print "Nope".
Can anybody help?
Thanks in advance