Taking a vacation


#1



https://www.codecademy.com/courses/python-beginner-P5YtY/1/3?curriculum_id=4f89dab3d788890003000096


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


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


#2

Take a closer look at your code below the "else" line.


#3

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