I'm expecting my code to work, however, there seems to be sure that I get "Oops, try again. Your function seems to fail on input -10 when it returned '-10' instead of '10' ." I tried calling it manually and I get -10. What seems to be the issue here?
def distance_from_zero(distance): if type(distance) == int or type(distance) == float: print abs(distance) else: print "Nope" return distance