Transportaion- I can't understand what have I done wrong... can someone please help?


#1

the code itself is:

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 = days * 40
if days >= 7:
cost -= 50
elif days >= 10:
cost -= 20
return cost

print rental_car_cost(3)


#2

3 days is 3 days or more, so there should be a discount


#3

Your elif statement should be "elif days >= 3" not "elif >= 7"


#4

elif days>=10: should actually be elif days>=3:
Since the discount of 20 occurs after 3 days