Topic 19. Review: Built-In functions.
I have read a number of posts on the Q&A to try to solve my failings but am not getting there. As far as i can tell my code is correct.
I get a syntax error referring to line 4; where "else:" is termed. And a NameError regarding distance_from_zero having not being defined indicating that I may have forgotten to create a function for it.
'''def distance_from_zero(number): if type(number) == int or type(number) == float: return abs(number) else: return "Nope"''''