How to Determine How Many Items exist in a List in Python


In this example, we will learn how to determine how many items exist in a list in Python.

Source Code

my_list = ['a', 'b', 'c', 'd', 'e']
print(len(my_list))

Output:

5
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Advertisement