Python List Length
List Length
To determine how many items a list has, use the
len() function:
Example
Print the number of items in the list:
thislist = ["apple", "banana", "cherry"]
print(len(thislist))
Try it Yourself »
print(len(thislist))
Related Pages
Python Lists Tutorial Lists Access List Items Change List Item Loop List Items List Comprehension Check If List Item Exists Add List Items Remove List Items Copy a List Join Two Lists