Getting There


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

What my problem with this code?

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


These numbers are already integers, so no need to convert them. The lesson checker may be looking directly at the code and does not expect to see int().


I delete it, it isn't solve my problem


Check your spelling.


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