Vacation renting of a car


#1

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


#2

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.


#3

delete the return rent on the line 24