Error in Transportation


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

My code:

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

Could anyone help me enlighten what is wrong in the above code and help me fix the error


Remember to return rental at the very end so the undiscounted amount is returned when there is no discount.


thanks a lot for your reply