Functions 7: Built-In Functions


#1

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? :open_mouth:

def distnace_from_zero(dfz):
    if type(dfz) == int or type(dfz) == float:
        return abs(dfz)
            
    else:
        return "Nope"


#2

distance is misspelled


#3

Oh my.... Thank you for pointing that out stetim94 looks like I still need a lot of work to do to become a better programmer XD


#4