Answers for "How to know size of Python list"

0

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))
Posted by: Guest on April-10-2022

Code answers related to "How to know size of Python list"

Python Answers by Framework

Browse Popular Code Answers by Language