What did I do wrong?


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
Taking a Vacation (3/7) - Getting There

<In what way does your code behave incorrectly? Include ALL error messages.>
I keep getting an indentation error

<What do you expect to happen instead?>
I expected the code to run since as far as I can tell its indented correctly

```python

def hotel_cost(nights):
return 140*nights

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

<do not remove the three backticks above>

#2

Hi @acidburn001,

Quite likely, the error message indicates the location of the problem.

The issue relates to how the code that you submitted is indented. However, since your posted code is not formatted, users are unable to see its indentation, which impedes their ability to offer effective assistance.

See How do I format code in my posts?. Try to edit your post to format your code, so that other users can see the problem.


#3

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