def rental_car_cost(days):
return total
if days>=7:
return total
elif days>=3:
return cost

It looks like rental_car_cost returns 120 instead of the correct amount (100) for 3 days.


Hi @muffens

Mind posting a link to the lesson, so we can see the lesson? Thanks!



its transportation under the lesson taking a vacation


You're returning total too early. Remove return total from the third line of the visible code.


thank you that really helped


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