It shows the error "Oops, try again. Your function seems to fail on input True when it returned '1' instead of 'Nope' "
I don't get it. Why is it broken?
def distance_from_zero(n): if type(n) != str: return abs(n) else: return "Nope" distance_from_zero(-8)