TypeError Traceback (most recent call last)
Cell In[1], line 18
15 personal_payment = {}
17 for insurance in proportion:
—> 18 unit_payment[insurance] = base_salary * proportion[insurance][‘单位’]
19 personal_payment[insurance] = base_salary * proportion[insurance][‘个人’]
21 total_unit_payment = sum(unit_payment.values())
TypeError: ‘float’ object is not subscriptable