How to Loop Through a List in Python


In this example we will show how to loop through a list in Python.

Source Code

letter = ['a', 'b', 'c', 'd']
for x in letter:
    print(x)

Output:

a
b
c
d
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments