Error in Transportation section


#1



I am having trouble figuring out what I did that causes an incorrect return?


Error: 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):
    total = 40 * days
    if days >= 7:
        total -= 50
    elif days >= 3:
        total -= 20
    return days


#2

here:

 return days

why do you return days? i would be interested in how much it would cost to rent the car


#3

hey is it you again @stetim94


#4

hey is it you again @stetim94 do you remember me


#5

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