happy new yearjoseph happy new yearglenn happy new yearsally donetranslating this for loop to english is not as direct as the whilebut if you think of friends as setit goes like this"run the statements in the body of the for loop once for each friend in the set named friends looking at the for loopfor and in are reserved python keywordsand friend and friends are variables for friend in friendsprint('happy new year:'friendin particularfriend is the iteration variable for the for loop the variable friend changes for each iteration of the loop and controls when the for loop completes the iteration variable steps successively through the three strings stored in the friends variable loop patterns often we use for or while loop to go through list of items or the contents of file and we are looking for something such as the largest or smallest value of the data we scan through these loops are generally constructed byinitializing one or more variables before the loop starts performing some computation on each item in the loop bodypossibly changing the variables in the body of the loop looking at the resulting variables when the loop completes we will use list of numbers to demonstrate the concepts and construction of these loop patterns counting and summing loops for exampleto count the number of items in listwe would write the following for loopcount for itervar in [ ]count count print('count'count