Getting There


I am stuck at 'getting there'.

I get the error message from codecademy saying "Oops, try again. It looks like plane_ride_cost does not return 222 when the city is Pittsburgh" This is my code:

def hotel_cost(nights):
    return 140*nights
def plane_ride_cost(city):
    if city == "Charlotte":
        return 183
    elif city == "Tampa":
        return 220
    elif city == "Pittsburg":
        return  222
    elif city == "Los Angeles":
        return 475

Send help please!


Check the spelling of this city.


Oh I am so stupid for not noticing this. Thanks!


Not stupid, just human. Never beat yourself up over simple mistakes that we all make with regular frequency. Just add a note to your debugging check list: check spelling.


Ok. Thanks for helping though. I don't have a debugging checklist but I will make one.


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