Getting There


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

def plane_ride_cost(city):

if city == "Charlotte":
    return "183"
elif city == "Tampa":
    return "220"
elif city == "Pittsburgh":
    return "222"
elif city == "los Angeles":
    return "475"


You should be returning integers and not strings,

remove all the quotes around your return values and your code should work. :slight_smile:


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