def distance_from_zero(command): if type(command) == int: return abs(command) elif type(command) == float: return abs(command) else: return "nope"
Oops, try again. Your function seems to fail on input True when it returned 'nope' instead of 'Nope'
Can someone please help? I'm not sure what they want me to change,