File "python", line 1
SyntaxError: invalid syntax
Oops, try again. It looks like you have a NameError. Maybe you forgot to create a function called distance_from_zero? Check the error message for more info! - global name 'distance_from_zero' is not defined
Well, I don't understand when it says 'distance_from_zero is not defined' as I have defined it.
def distance_from_zero(dfz) if type(dfz) == int or type(dfz) == float: return abs(dfz) else: return "Nope"