def distance_from_zero(k): if type(k) == int or float: return abs(k) else: return "Nope"
Got something you'd like to ask?
For example, you might want to describe how your code behaves differently from how you want it to behave, and what information you need to figure it out or why you're unable to figure out or how to approach figure it out.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.