I am trying to multiply each element with the one next to it, and then sum them together. ( I have to use a for/while loop since this is what is required for the question i am trying to solve)
C= [7,5,4,5,3]
j = 0
for j in len(C):
j += 1
answ = (int(C[0::j])*int(C[1::j]))
print answ
I keep getting the error message "int object not iterable" I would appreciate if someone could help me with this.