Taking a vacation lesson


#1

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

Whats wrong with this for the lesson?
Thanks


#2

This is not an assignment but an equality comparison expression (a Boolean).

cost = 40 * days