Help ! Bug?


#1


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

File "python", line 20
elif days >= 3:
^
SyntaxError: invalid syntax

Work properly


Replace this line with your code. Do not remove the backticks that are above or below this line.

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


#2

Indentation error in the if statement.


#3

Theres no indentation error , it's saying there's a syntax error , in the elif statement :
File "python", line 20
elif days >= 3:
^
SyntaxError: invalid syntax


#4

Yes, there is an indentation error. The error pointer stops right AFTER the error line.