Given that we want to accumulate the total sum of a list of numbers, which of the following accumulator patterns would be appropriate?
I.
nums = [4, 5, 2, 93, 3, 5]
s = 0
for n in nums:
s = s + 1
II.
nums = [4, 5, 2, 93, 3, 5]
s = 0
for n in nums:
s = n + n
III.
nums = [4, 5, 2, 93, 3, 5]
s = 0
for n in nums:
s = s + n