For loop demo : For « Language Basics « 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.Dictionary for loopDictionary for loop
2.for with else for with else
3.Nested if demoNested if demo
4.Calculating compound interest.Calculating compound interest.