Review: Built-In Functions
My code is throwing a very weird error message. I am not sure where that number letter combo is even coming from...
Anyways, as always thanks in advance.
Oops, try again. Your function seems to fail on input -10 when it returned 'function distance_from_zero at 0x7f3695397848' instead of '10'
def distance_from_zero (num): return distance_from_zero if type(num) == int or float: return abs(num) elif type (num): return abs(num) else: return 'nope'