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


#1



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


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">.


#2

looks like you mistyped los angeles


#3

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

Thank you


#4

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