in some casesyou must create loops within loops for exampleto create multiplication tableyou use loop within loop the inner loop calculates the column values and the outer loop moves between rows you see such an example later in the so don' worry too much about understanding precisely how such things work right now processing data using the for statement the first looping code block that most developers encounter is the for statement it' hard to imagine creating conventional programming language that lacks such statement in this casethe loop executes fixed number of timesand you know the number of times it will execute before the loop even begins because everything about for loop is known at the outsetfor loops tend to be the easiest kind of loop to use howeverin order to use oneyou need to know how many times to execute the loop the following sections describe the for loop in greater detail understanding the for statement for loop begins with for statement the for statement describes how to perform the loop the python for loop works through sequence of some type it doesn' matter whether the sequence is series of letters in string or items within collection you can even specify range of values to use by specifying the range(function here' simple for statement for letter in "howdy!"the statement begins with the keyword for the next item is variable that holds single element of sequence in this casethe variable name is letter the in keyword tells python that the sequence comes next in this casethe sequence is the string "howdythe for statement always ends with colonjust as the decision-making statements described in do indented under the for statement are the tasks you want performed within the for loop python considers every following indented statement part of the code block that composes the for loop againthe for loop works just like the decision-making statements in