This is the error I keep receiving:
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 'math' is not defined
Does anyone know what is wrong? Please help! This is my code:
def distance_from_zero(number): if type(number)==int or type(number)==float: return math.abs(number) else: return "Nope"