Help me, I get stuck in Python


Oops, try again. It looks like rental_car_cost returns 140 instead of the correct amount (100) for 3 days

what is my probelm? my english is poor. please help me. I get stucked.

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


if the car is rented for a longer time you should give discount, you actually do the opposite, you make the rent more expensive.


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