print(odd odd can you see what is happening in these two examplesthe body of the loop is executed using each successive value in the list the length of the list determines the number of times the loop executes in the first examplethe list contains the four values through and these successive values of are simply printed in the second exampleodd takes on the values of the first five odd natural numbersand the body of the loop prints the squares of these numbers nowlet' go back to the example that began this section (from chaos pylook again at the loop headingfor in range( )comparing this to the template for the for loop shows that the last portionrange( )must be some kind of sequence it turns out that range is built-in python function for generating sequence of numbers "on the fly you can think of range as sort of implicit description of sequence of numbers to get handle on what range actually doeswe can ask python to turn range into plain-old list using another built-in functionlistlist(range( )turns range( into an explicit list [ do you see what is happening herethe expression range( produces the sequence of numbers through the loop using range( is equivalent to one using list of those numbers for in [ ]in generalrange(will produce sequence of numbers that starts with and goes up tobut not does not includethe value of if you think about ityou will see that the value of the expression determines the number of items in the resulting sequence in chaos py we did not even care what values the loop index variable used (since was not referred to anywhere in the loop bodywe just needed sequence length of to make the body execute times as mentioned abovethis pattern is called counted loopand it is very common way to use definite loops when you want to do something in your program certain number of timesuse for loop with suitable range for in range()the value of the expression determines how many times the loop executes the name of the index variable doesn' really matter muchprogrammers often use or as the loop index variable for