Cannot Get Days = 3 for Transportation


I am looking at the transportation portion of the vacation code.

I get the error that the code does not read the correct cost for 3 days.

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


Because you're not returning it?
Also, doesn't this condition:

elif days >=3 and days > 7:

conflict with this one?

if days >=7:


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