creating basic for loop the best way to see how for loop actually works is to create one in this casethe example uses string for the sequence the for loop processes each of the characters in the string in turn until it runs out of characters this example also appears with the downloadable source code as simplefor py open python file window you see an editor in which you can type the example code type the following code into the window -pressing enter after each lineletternum for letter in "howdy!"print("letter "letternumis "letterletternum+= the example begins by creating variableletternumto track the number of letters that have been processed every time the loop completesletternum is updated by the for statement works through the sequence of letters in the string "howdy!it places each letterin turnin letter the code that follows displays the current letternum value and its associated character found in letter choose runrun module python shell window opens the application displays the letter sequence along with the letter numberas shown in figure - figure - use the for loop to process the characters in string one at time