"Oops, try again. It looks like rental_car_cost returns 120 instead of the correct amount (100) for 3 days. " I keep getting the same error over and over again, even if I change the number 3 to 50 and 20 to 100! I thought it was a bug thus I tried on another computer but no difference.
My code looks perfect to me, it should give out 100. Please help me see what's wrong with it.
Replace this line with your code. def rental_car_cost(days): if days <= 3: cost = days * 40 return cost elif days >= 3: cost -= 20 return cost elif days >= 7: cost -= 50 return cost