Can anyone see what the issue is with this code? It seems to run find in pythontutor.com when I call the function with either an int, float or a string.
Give me an "Oops, try again. Your function seems to fail on input True when it returned '1' instead of 'Nope'"
def distance_to_zero(n): if type(n) == int or type(n) == float: return abs(n) else: return 'Nope'