Question
Write a Python for loop that computes the sum of every integer from 1 to n.
(a) Use the accumulator pattern. Verify: n=3 gives 6, n=10 gives 55.
(b) Write the same in one line using sum() and range().
(c) Iterate over the string "ENSC" and print each character on its own line.