How to Loop Through List Items in Python


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

Source Code

my_list = ['a', 'b', 'c', 'd', 'e']
for item in my_list:
    print(item)

Output:

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