Review: Built-In Functions
This is my code:
def distance_from_zero(a): if type(a) == int or type(a) == float: print abs(a) else: return "Nope"
And this is the error message I receive
Oops, try again. Your function seems to fail on input -10 when it returned 'None' instead of '10'
What am I doing wrong? Thank you.