Transportation


#1


.


I don't know what is wrong with my code. Could someone please help

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

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


#2

You should not just return -20 or -50, but the cost reduced by those numbers. I know this because of the sentence:

if you rent the car for 3 or more days, you get $20 off your total.


#3

you want to return the cost minus a little discount, not just the discount


#5