You will write the terms of an arithmetic progression and its sum by the formula, then check that the two agree.
Your tasks.
ap_terms, return the list of the first n terms.ap_sum, return the sum of the first n terms by the formula .total to the sum of the first terms of , using your function.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…