Transportation/Taking a vacation what am I doing wrong here?


#1

Hi ,

This is my code and I keep getting an error saying: “Did you create a function called rental_car_cost?”.
Does anybody know what i’m doing wrong here? Thanks.

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


#2

Check your indentation.


#3

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