Rental cost-getiing the same error again.please assist


#1

def rental_car_cost(days):
cost = days * 40
if days >= 7:
cost -= 40
return cost
elif days >= 3:
cost -= 20
return cost
else:
return cost
my error says"It looks like rental_car_cost returns 240 instead of the correct amount (230) for 7 days."


#2

this line

    if days >= 7:
        cost -= 40

should rather be

    if days >= 7:
        cost -= 50

#3

Hey rydan. Thank you for help. My bad ,I misunderstood the question. Thanks again.