Review: Built In Functions help needed


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)
        return "Nope"

help would be highly appreaciated, thanks!


check the spelling of your function name


wow i was really dumb missing that out haha