Can you help me?


#1

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

When run to the console; displays error: did you create a function called rental_car_cost


#2

If the days variable is more than 7 you set the cost to 30 instead of decreasing it by 30.


#3

@eveat Ah yes. Fixed it now! Much appreciated!