File "python", line 4
SyntaxError: invalid syntax
It should return the absolute value or "nope" but it's giving me an error. and i can't seem to find anything wrong with the code. Help please?
def distance_from_zero(d): if d == int or float: return: abs(d) else: return: "Nope"