def distance_from_zero(x): if type(x) == int or type(x) == float: return abs(x) else: print("not possible")