Your code threw the following error: unindent does not match any outer indentation level (python, line 15)
I keep getting this error and I dont understand why, please help. The line 15 is where the "if" statement starts.

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



this two lines:

     rental = 40 * days
    if days >= 7:

do not have the same indent, why?


stuck on this as well


This should not be a percentage, just a plain number... 50

Same thing with the other value, as well.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.