I already done this section correctly but i have a question about it.
The right anser is:
def distance_from_zero(num): if type(num) == int or type(num) == float: return abs(num) else: return "Nope"
But i wonder could i write the "if" line as:
if type(num) == int or float:
I tried to pass this section but it didn't accept that code.