TypeError Traceback (most recent call last)
Cell In[1], line 14
1 # 社保基数13200元,根据河南洛阳的社保缴费比例计算个人需缴纳的社保金额
2 # 洛阳社保缴费比例:养老保险8%,医疗保险2%,失业保险0.3%,工伤保险0%,生育保险0.5%
3 # 个人所得税起征点为5000元
4
5 # 计算社保缴费总额
6 social_insurance_rate = {
7 “养老保险”: 0.08,
8 “医疗保险”: 0.02,
(…)
11 “生育保险”: 0.005
12 }
—> 14 total_social_insurance = sum([base_salary * rate for rate, base_salary in social_insurance_rate.items()])
16 # 计算应纳税所得额
17 taxable_income = 13200 - 5000 - total_social_insurance
Cell In[1], line 14, in <listcomp>(.0)
1 # 社保基数13200元,根据河南洛阳的社保缴费比例计算个人需缴纳的社保金额
2 # 洛阳社保缴费比例:养老保险8%,医疗保险2%,失业保险0.3%,工伤保险0%,生育保险0.5%
3 # 个人所得税起征点为5000元
4
5 # 计算社保缴费总额
6 social_insurance_rate = {
7 “养老保险”: 0.08,
8 “医疗保险”: 0.02,
(…)
11 “生育保险”: 0.005
12 }
—> 14 total_social_insurance = sum([base_salary * rate for rate, base_salary in social_insurance_rate.items()])
16 # 计算应纳税所得额
17 taxable_income = 13200 - 5000 - total_social_insurance
TypeError: can’t multiply sequence by non-int of type ‘float’