Hi, I just can't understand what is wrong with my code to have this error:
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
What did I do wrong?
def distnace_from_zero(dfz): if type(dfz) == int or type(dfz) == float: return abs(dfz) else: return "Nope"