TypeError Traceback (most recent call last)
Cell In[1], line 37
35 for limit, rate in personal_tax_rates.items():
36 if taxable_income > limit:
—> 37 tax += (limit - (limit if limit == 0 else personal_tax_rates.keys()[-2])) * rate
38 else:
39 tax += taxable_income * rate
TypeError: ‘dict_keys’ object is not subscriptable