TypeError Traceback (most recent call last)
Cell In[1], line 19
10 social_security_rates = {
11 ‘养老保险’: 0.08,
12 ‘医疗保险’: 0.02,
(…)
15 ‘生育保险’: 0
16 }
18 # 计算个人社保缴费总额
—> 19 total_social_security_payment = sum([base * rate for base, rate in social_security_rates.items()])
21 # 曲靖市个税起征点
22 tax_threshold = 5000
Cell In[1], line 19, in <listcomp>(.0)
10 social_security_rates = {
11 ‘养老保险’: 0.08,
12 ‘医疗保险’: 0.02,
(…)
15 ‘生育保险’: 0
16 }
18 # 计算个人社保缴费总额
—> 19 total_social_security_payment = sum([base * rate for base, rate in social_security_rates.items()])
21 # 曲靖市个税起征点
22 tax_threshold = 5000
TypeError: can’t multiply sequence by non-int of type ‘float’