4. Transportation


#1



4. Transportation


Oops, try again. It looks like rental_car_cost returns 1 instead of the correct amount (40) for 1 days.


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


#2

you should return cost, not days


#3

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