this is the error message i got:
the Oops, try again. An error was raised for rental_car_cost(1): local variable 'cost' referenced before assignment
def rental_car_cost(days): cost == days * 40 if days >= 7: cost = days * 40 - 50 elif days >=3: cost = days * 40 - 20 return cost
can someone please explain to me what i'm doing wrong?