Getting There...Please help


#1



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


Oops, try again. It looks like plane_ride_cost does not return 220 when the city is Tampa.


I don't understand what's wrong with my code...


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


#2

Hi @childish.jeremiah,

This does not compare city to "Tampa" ...

elif "Tampa":

This makes the correct comparison ...

elif city == "Tampa":

All the other conditions need to be revised similarly.


#3

Thx man :wink:
It took me awhile figuring out what I did wrong so thx


#4