3. getting there (help )



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


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