Whats wrong with this?



120 instead of courrent (100) for 3 days

correct answer

Replace this line with your code. 

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


@gabriel-tsg: The problem is that you're not checking the value stored in day , you're just returning 40 * day right away.
The return statement will simply force the code to go back to where it was called and the execution of the code will continue where it was interrupted due to the function call.
Check again the instructions and see where you should use your return statement.