You will make the terms of a sequence from its formula, build its partial sums with a loop, and then get the terms back from the sums. The checker tells you which tasks pass.
The idea. A partial sum is the one before it plus one new term. To go back, subtract: and .
Your tasks.
terms to the list of the first terms, to , using a(n).sums to the list of the partial sums to .back to the terms recovered from sums.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…
With Standard, you also open 11 more problems, 2 Python labs and 1 extra course. Everything you have used here stays free, always.