Why its giving a wrong total, help me to find error


#1

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
else:
return 0

def rental_car_cost(days):
total= 40 * days
if days >= 7:
total -= 50
elif days >= 3:
total -= 20
return total

def trip_cost(city,days,spending_money):
return plane_ride_cost(city) + rental_car_cost(days) + hotel_cost(days) + spending_money
print trip_cost("Lost Angeles",5,600)

this is my code. but it showing error in output. it showing 1480 total instead of 1955. Can anyone help me to identify errorr.


#2

Just change the spacing in the last line of the code.

It should look more like ("Lost Angeles", 5, 600)


#3

I tried, still not working


#4

done. don't get it what was the error. just retype last command.


#5

try ("Los Angeles", 5, 600)