looping through lists to automate the processing of list elementsyou need some way to loop through the list the easiest way to perform this task is to rely on for statementas described in the following steps this example also appears with the downloadable source code as listloop 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 linelist [ for item in list print(itemthe example begins by creating list consisting of numeric values it then uses for loop to obtain each element in turn and print it onscreen choose runrun module you see python shell window open the output shows the individual values in the listone on each lineas shown in figure - figure - loop makes it easy to obtain copy of each item and process it as needed