In Python, we can use len() to count the number of items in a List
list = ["a", "b", "c"]
print(len(list))
Output
3
In Python, we can use len() to count the number of items in a List
list = ["a", "b", "c"]
print(len(list))
Output
3
Was this article helpful?
No comments yet. Be the first to leave a comment!