Whats wrong with this?


#1



https://www.codecademy.com/courses/python-beginner-P5YtY/1/3?curriculum_id=4f89dab3d788890003000096#


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


#2

@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.