Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to know size of Python list

# Creating a List
List1 = []
print(len(List1))
 
# Creating a List of mixed values
List2 = ["Softhunt", ".net", 14]
print(len(List2))

# Creating a List of numbers
List3 = [10, 20, 14, 31, 3]
print(len(List3))
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #How #size #Python #list
ADD COMMENT
Topic
Name
6+9 =