Skip to content
Advertisement

Tag: operands

Operand error when using an integer in a list

I’ve been trying to work on this code for hours but keep getting to the same point every time. Basically I’m trying to add up all the values in an array. However, it keeps saying unsupported operand for integer and list. I’m confused why it is saying that because the list consists of integers. This is in python. Above is

Advertisement