list size in python 3 code example
Example 1: list length in python
list1 = [1,2,3]
print(len(list))
Example 2: how to get size of list in python
list_1 = ["Hello", 1, "World", 2]
# if you want length of this lins use len() function
print(len(list_1))
# if you want size in bytes
import sys
print(sys.getsizeof(list_1), "Bytes")