Getting There


#1



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!


#2

Check the spelling of this city.


#3

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


#4

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.


#5

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


#6

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