Help


#1



https://www.codecademy.com/courses/python-beginner-c7VZg/4/3?curriculum_id=4f89dab3d788890003000096#


def distance_from_zero(k):
    if type(k) == int or float:
        return abs(k)
    else:
        return "Nope"


#2

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.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.