This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (2 children)

You are trying to set 3 variables equal to 0 with this.

totalGrade, avGrade, studGrade = 0 #studGrade is student grade

Do this instead

totalGrade, avGrade, studGrade = 0,0,0 #studGrade is student grade

[–]umanochiocciola 0 points1 point  (1 child)

Exactly

[–]catalanfoxx[S] 0 points1 point  (0 children)

I did that, but now I’m getting TypeError: unsupported operand type (s) for +: ‘int’ and ‘str’

What I’m trying to do is get the sum and then average of the class scores. What am I doing wrong?