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


#1

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

elif days>3:
    total = total-20

print total

rental_car_cost(4)

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.

What?!!?


#2

Did you try to type:

return total

instead?


#3

Won't work even if i write return.


#4

In the instructions, it says:

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

so:
if days >= 7:

same goes for:
elif days >= 3

I hope it will work this time :smiley:


#5

Thank you baby!:DDDD