I am getting the following error:
Your function seems to fail on input -10 when it returned ‘Nope’ instead of ‘10’
I run out of ideas. My code is:
def distance_from_zero(s): if type(s) == int(s) or type(s) == float: return abs(s) else: return "Nope"
Do you have any clue what’s wrong?