I dont understand with this part


#1



def hotel_cost(nights):
    return nights*140
def plane_ride_cost(city):
    if city=="Charlotte":
        return 183
    elif city=="Tampa":
        return 220
    elif city=="Pittsburgh":
        return 222
    elif city=="Los Angeles":
        return 475
        
def rental_car_cost(days):
    rentCost=days*40
    if days>=7:
        rentCost+=50
    elif days>=3:
        rentCost+=20
    return rentCost

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


#2

@purnamafadri,
If you rent a car for more then 2 days
you get a =reduction= on the =rentCost=
instead of your =increase=.....

Try using

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