i am trying to calculate sentimental score of each syntax of csv file [duplicate]
问题 This question already has an answer here : TypeError: unsupported operand type(s) for +=: 'int' and 'list' (1 answer) Closed 7 days ago . this is a function of counting sentimental score of each syntax and i am getting this error Traceback (most recent call last): File "C:/Users/Public/Downloads/Hotelsurvey.py", line 116, in <module> Countswordofeachsyntax() File "C:/Users/Public/Downloads/Hotelsurvey.py", line 92, in Countswordofeachsyntax print(findsentimentalscore(nopunct)) File "C:/Users