3.Getting there - File "python", line 10 elif city == "Los Angeles": ^ IndentationError: unindent does not match any outer indentation level


#1



what is wrong?My error is

script.py

  File "python", line 10
elif city == "Los Angeles":
                          ^

IndentationError: unindent does not match any outer indentation level


def hotel_cost(nights):
    return 140*nights
def plane_ride_cost(city):
    if city == "Charlotte":
        return 183
    elif city == "Tempa":
        return 220
    elif city == "Pittsburgh":
        return 222
     elif city == "Los Angeles":
        return 475


#2

Hi this line

     elif city == "Los Angeles":

should be indent like the others lines (it should have the same space beofre it like the others lines)


#3

thanks it works! many many thanks!


#4

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