how to print size of list in python code example
Example 1: list length in python
list1 = [1,2,3]
print(len(list))
Example 2: length of list python
>>> list = [a, b, c]
>>> len(list)
#output 3
Example 3: python list of size
li = [None] * 5 # [None, None, None, None, None]
li = [0] * 5 # [0, 0, 0, 0, 0]