TypeError Traceback (most recent call last)
Cell In[1], line 15
12 total_cost = 0
14 for insurance, rates in proportions.items():
—> 15 if ‘单位’ in rates:
16 total_cost += base_salary * rates[‘单位’]
17 if ‘个人’ in rates:
TypeError: argument of type ‘float’ is not iterable