I am not really sure where I am going wrong I feel as though my code is correct but I keep getting the following error
Oops, try again. Your function seems to fail on input True when it returned 'None' instead of 'Nope'
If anyone can explain to me where I am going wrong, that would be really appreciated.
def distance_from_zero(n): if type(n) == int or type(n) == float: return abs(n) else: "Nope"