Review: Built In Functions help needed


#1

hey, i need help with Review: Built in Functions.
when i click save and submit code it says:

Oops, try again. Your function seems to fail on input True when it returned '1' instead of 'Nope'.

here is my code:

def dstance_from_zero(n):
    if type(n) == int or type(n) == float:
        return abs(n)
    else:
        return "Nope"

help would be highly appreaciated, thanks!


#2

check the spelling of your function name


#3

wow i was really dumb missing that out haha


#4