Whats wrong with this?


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/python-beginner-P5YtY/1/3?curriculum_id=4f89dab3d788890003000096#

<In what way does your code behave incorrectly? Include ALL error messages.>
120 instead of courrent (100) for 3 days

<What do you expect to happen instead?>
correct answer

```python

Replace this line with your code.

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

<do not remove the three backticks above>

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