def distance_from_zero (num): return distance_from_zero if type(num) == int or type(num) == float: return abs(num) elif type (num): return abs(num) else: return 'nope'
Oops, try again. Your function seems to fail on input -10 when it returned '' instead of '10'
I have coded everything correctly but it is coming up with an error message. I have looked at all the forums and I can't find anything.
Please help me!!!!
Replace this line with your code.