Taking a vacation


#1

Hi,

Having issues, the error I am currently getting is stating that the cost for 3 days is 120 instead of 100. Anyone help clarify what I am doing wrong

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


#2

@benlandsberg,

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

print car_rental_cost(1)
print car_rental_cost(3)
print car_rental_cost(7)

================================

Maybe....

++++ reset of session *****************
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom