Getting There...Please help


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


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.


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