initialize the accumulation to include none of the sequence (sum herefor item in sequence new value of accumulation result of combining item with last value of accumulation this pattern will work in many other situations besides adding numbers english loop terminologyof course you need to be able to go from an english description of problem to plan and then implement it in python in particularit will be very important to realize when you will need your program to have loop through sequence what are some common words or phrases that suggest loopafter thinking for yourselfcompare once you see this need for loopyou need to plan your code there are bunch of questions you can routinely ask yourself about fleshing out the outline for the loop part of your codeinitialization loop headingmain work to be repeated preparation for the next time through the loop what is the sequencewhat descriptive name can give to the loop variable write the for loop heading with this decidedyou no longer need to think about the whole program at onceyou can focus on what you do for one elementwith the name you gave in the loop heading what do need to do for single element of the sequencedoes this involve other variablesif sohow will initialize themwrite this action into the body of the loopusing the loop variable does the main action involve variableother than the loop variablethat needs to change each time through the loopif sohow do relate the present and next valuesand change the value to be ready for the next time through the loopwriting the sequence for specific example may help finallycode this update play computer sumlist exercise suppose the function sumlistdefined aboveis called with the parameter [ play computer on this callusing the file playcomputersumstub rtfopened from an operating system window for the examples directory do not open in idle the file should come up in your usual word processor immediately save the file as playcomputersum rtfand fill in blank cells in the table make sure there is row in the table for each line executed in the programwith separate line entry for each time line is executed in each row enter which program line is being executedand show all changes caused to variables by the execution of that one line display line numbers as shown in the margin beside the example code in the tutorial (the separate python files themselves do not show the line numbers table is started for you below the final row that you enter in your your table should be for an execution of line numbered in the codeand your comment can be"return if the same variable value in one column repeats through several rowsit is more convenient just leave the later entries blankrather than keep copying with this conventionthe current value of variable is the last value recorded in previous line in the table this is the first "play computerexercise with loop be sure to look back at the earlier play computer examples the lines in the loop (and hence their line numbersrepeat multiple times as rows in the tableas you follow the loop one time through after anotherthe original parameterwhich does not changedoes not have column in the tablefor compactness the start of the table is shown below as shown in the first commentthroughout the function callnums is "do each""do every""for all""process each""do ___ times" loops and sequences