I am stuck on taking a vacation.
It keeps telling me "Oops, try again. An error was raised for rental_car_cost(1): local variable 'cost' referenced before assignment."
Everything seems to have correct syntax. What am I missing?
Replace this line with your code. def rental_car_cost(days): cost == 40 * days if days >= 7: cost -= 50 elif days >= 3: cost -= 20 return cost