Oops, try again. Your function seems to fail on input True when it returned '1' instead of 'Nope
I expected the code to behave. Just kidding i wanted the function distance_from_zero to workout the absolute value of a data type as long as it is a integer or a float.
def distance_from_zero(DFZ): if type(DFZ) == int or float: return abs(DFZ) else: return 'Nope'