Transportation


#1

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%

`


#2

this two lines:

     rental = 40 * days
    if days >= 7:

do not have the same indent, why?


#3

stuck on this as well


#4

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

Same thing with the other value, as well.


#5

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