3.Getting There - Error but haven't figured out why



ERROR: Oops, try again. It looks like plane_ride_cost does not return 475 when the city is Los Angeles.

I expected this to work

def hotel_cost(nights):
    return 140 * nights

def plane_ride_cost(city):
    if city == "Charlotte":
        return 183
    elif city == "Tampa":
        return 220
    elif city == "Pittsburgh":
        return 222
    elif city == "Los Angles":
        return 475<img src="//codecademy-discourse.s3.amazonaws.com/original/4X/e/3/0/e30e6a03281501f1f1fa2964c072ec0b2f8c1405.png" width="642" height="500">.


looks like you mistyped los angeles


Yes, that fixed it. I have to get better at finding those details.

Thank you


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