I don't get why it doesn't work. Plan your trip


def rental_car_cost(days):
total = days*40
if days > 7:
total = total - 50

elif days>3:
    total = total-20

print total


Returns CORRECTLY! Just after the answer it says None.

the mistake:

Oops, try again. It looks like rental_car_cost returns None instead of the correct amount (40) for 1 days.



Did you try to type:

return total



Won't work even if i write return.


In the instructions, it says:

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

if days >= 7:

same goes for:
elif days >= 3

I hope it will work this time :smiley:


Thank you baby!:DDDD