The error that I get but I don't get the functions structure and every time I get the error that the function is not defined...
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
Could someone help me understanding the structure and my error please.
def distance_from_zero(): distance_from_zero = 2 ** 5 If type(distance_from_zero) == int or type(distance_from_zero) == float: print abs(distance_from_zero) Else: print "Nope" distance_from_zero()