Python Count the number of items in a list
By:Roy.LiuLast updated:2019-08-11
In Python, we can use len() to count the number of items in a List
list = ["a", "b", "c"] print(len(list))
Output
References
From:一号门
In Python, we can use len() to count the number of items in a List
list = ["a", "b", "c"] print(len(list))
Output
From:一号门
COMMENTS