Taking a Vacation (4/7)


#1



When I run this code, I get 'Oops, try again. It looks like rental_car_cost returns 120 instead of the correct amount (100) for 3 days. '


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


#2

a function ends the moment a return keyword is reached, this currently happens a bit to soon


#3

Thanks! I just fixed the code so it works now :slight_smile:


#4