Use a for-loop to loop over a list. Use the syntax for item in sequence with sequence as a list to iterate over each item in the list . Alternatively, use range(stop) with stop as the size of the list to create a sequence of numbers up to stop-1 for the sequence .