3. getting there help


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
        return "no value"

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


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 ( : )


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


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

You're welcome. :smile:


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