KeyError Traceback (most recent call last)
Cell In[1], line 46
44 break
45 else:
—> 46 tax_amount += (limit - (tax_rates.get(limit - 1, 0) if limit - 1 in tax_rates else 0)) * tax_rates[limit - 1] - quick_deduction[limit - 1]
47 taxable_income -= limit
49 tax_amount
KeyError: -1