For loop demo : List Loop « List « Python






For loop demo

For loop demo

words = ['A', 'B', 'C', 'D', 'E']
for word in words:
    print word

           
       








Related examples in the same category

1.List for iterationList for iteration
2.For StatementsFor Statements
3.Loop through a list: for inLoop through a list: for in
4.To iterate over the indices of a sequence, combine range() and len()To iterate over the indices of a sequence, combine range() and len()
5.For loop for ListFor loop for List