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 www.pythonprogramming.in #
 
PREVIOUS NEXT
Tagged: #Count #elements #list #Python
ADD COMMENT
Topic
Name
3+5 =