NameError Traceback (most recent call last)
Cell In[1], line 53
51 tax += quick_deduction[limit]
52 else:
—> 53 tax += (taxable_income - (tax_rates[max(k for k in tax_rates.keys() if k < limit)] if k < limit else 0)) * rate
54 tax += quick_deduction[limit]
55 break
NameError: name ‘k’ is not defined