It looks like you have a NameError. Maybe you forgot to create a function called distance_from_zero? Check the error message for more info! - global name 'distance_from_zero' is not defined


#1


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

Oops, try again. It looks like you have a NameError. Maybe you forgot to create a function called distance_from_zero? Check the error message for more info! - global name 'distance_from_zero' is not defined


def distance_from_zero(Victini)
    Victini == 494
    if type(Victini) == int or type(Victini) == float:
        return abs(Victini)
    else:
        return ("Nope")
    return Victini
        
max(4.94, 49.4, 494)
min(4.94, 49.4, 494)

abs(2)
abs(-2)


#2

The above is not a statement. The line may be removed. Likewise,

may also be removed. It is never reached.

As a side note, naming convention has us use lowercase first letter in plain variables. Capital letters are reserved for class names.

The above lines are not part of the instructrions and should also be removed.


#3

Thank you for the help! Thanks to you, I completed the course.


#4

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