Taking a vacation - Transportation 4/7


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

Oops, try again.
_ It looks like rental_car_cost returns 120 instead of the correct amount (100) for 3 days._

I litterally don't know where is wrong...:cry:


#2

This is not a statement. It should read either,

cost -= 50

or

cost = cost - 50

Likewise for the second case.