I don't understand


#1


https://www.codecademy.com/courses/python-beginner-P5YtY/1/2?curriculum_id=4f89dab3d788890003000096#.

It asks if I have created a function called plane_ride_cost, which I have. If I then remove the argument city from the parentheses, it asks if I have used the argument city. So when I remove the argument, it overlooks the name of the function, but when I add it it comes up with an error for the name of the function.


def plane_ride_cost(city):
    if city == "Charlotte":
        return 183
    elif city == "Tampa":
        return 220
    elif ciy == "Pittsburgh":
        return 222
    elif city == "Los Angeles":
        return 475


#2

The error is a bit misleading here. :slight_smile:
The only problem seems to be a misspelling.

Any other editor would tell you that 'ciy' is undefined and will give you the line of error.


#3

That's what it was. Thank you. By the way, when you write a comment do you use HTML? That's what it seems like with the more than, less than symbols


#4

Partially yes. There's also BBCode and markdown that helps out with making the comments look above average.


#5

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