Transportation - Help!


#1

I don't know what I'm doing wrong; please help me! :anguished:
This is the code

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
def rental_car_cost(days):
cost = 40 * days
if days >= 7:
cost - 50
elif days >= 3:
cost - 20
else :
return cost

Also tried changing cost - 50 to cost -= 50 (doesn't work)

Error message

(I am using Google chrome)


#2

you want to update your variable, on line 15 and 17 you want to use -= rather then -

for next time, use one of the two following options to make your code/indent is visible:

select your code and press ctrl + shift + c (or cmd + shift + c if you use a mac)

if this instructions are unclear, you can also insert 3 backticks before and after your code, like so:

```
<p>visible</p>
```

the backtick is located above the tab key on your keyboard