Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Count elements in list Python

List = ["Elephant", "Snake", "Penguin"]

print(len(List))

#	With the 'len' function Python counts the amount of elements 
#	in a list (The length of the list).
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Count #elements #list #Python
ADD COMMENT
Topic
Name
6+2 =