3. getting there help


#1



def plane_ride_cost(city):
   if city == "Charlotte":
        return 183
    elif city == "Tampa":
        return 220
    elif city == "Pittsburgh":
        return 222
    elif city == "Los Angeles":
        return 475
    else:
        return "no value"
plan_ride_cost(Tampa)

for some reason my code wont work .
it states that.
File "python", line 10
elif city == "Tampa":
^
IndentationError: unindent does not match any outer indentation level


#2

After your if statement, other elifs and else do not match. Ensure you have one tab space by hitting the enter key on your keyboard whenever you use the colon ( : )


#3

my problem was the white space on my if statment and plan instead of plane. but ty anyways


#4

Yup! My point exactly... Just wanted you to see it from top.

You're welcome. :smile:


#5

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