list = [1, 2, 3, 4, 5]
total = 0
for each number in list:
total = total + number
end for
print total
python
list = [1, 2, 3, 4, 5]
total = 0
for number in list:
total += number
print(total)
list <- [1, 2, 3]
) or an equals sign.end for
or similar notations.