I'm stuck with the review of built-in functions, please help! Here's my code, I keep getting an error "Oops, try again. Your function seems to fail on input -10 when it returned 'Nope' instead of '10'"
I can't figure it out for the life of me.
def distance_from_zero(hei): if type(hei) == 'int' or type(hei) == 'float': return abs(hei) print abs(hei) else: return "Nope" print distance_from_zero(20)