Transporter Error


#1



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


I keep getting this error:

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

the function should return the cost of renting the car, currently your function returns the number of days the car is rented


#3

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