3. getting there (help )


#1



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


File "python", line 11
else city == "Los Angeles":
^
SyntaxError: invalid syntax


when i remove the else and replace it with elif it still doesnt work but it does not show this particular error message.
SO i got two doubts 1) why it giving me an error message on else @)how to go about this excercise


def hotel_cost(nights):
    #per night cost is $140
    return nights*140
def plane_ride_cost(city):
    if city == "charlotte":
        return 183
    elif city == "tampa": 
        return 220
    elif city == "pittsburg":
        return 222
    else city == "Los Angeles":
        return 475


#2

A post was merged into an existing topic: 3. getting there ( help)


#3