```
def hotel_cost(nights):
# the hotel costs 140 a night
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
return cost
def trip_cost(city, days, spending_money):
return rental_car_cost(days) + hotel_cost(days - 1) + plane_ride_cost(city) + spending_money
```

HERE COMES THE PROBLEM:

trip_cost(‘Los Angeles’, 3, 0) returned 855 instead of the correct value 995

However, all the values are the ones that I was asked to put in, thus my bewilderment. But then again, I am an extreme rookie with programming so perhaps I can’t see the obvious. Help much appreciated!