Python – Count the number of items in a list
In Python, we can use len()
to count the number of items in a List
list = ["a", "b", "c"]
print(len(list))
Output
3
References
About Author
Comments
Subscribe
0 Comments