To find the sum of a list of numbers, look at the scripts inside. In Python, it is easier yet, with less code overall and only one variable instead of two: nums = [1, 2, 3, 4, 5, 6, 7] sum = 0 for i in nums: sum += i print(sum) Run it here https://repl.it/BWFP