Vacation renting of a car


HI i ahve tried everything that i could but am unable to get this error off:

it says that my code is returning original 120 instead of 100 days.

can you please help where i am going wrong


Hi, @cloudpro95507 ,

The first two statements in your rental_car_cost function are ...

rent = 40*days
return rent

As soon as the return statement is reached, the value of rent is returned, so the if structure is never executed.


delete the return rent on the line 24