I don't understand



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


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.


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


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


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