size of list python 3 code example
Example 1: length of list python
thistuple = ("apple", "banana", "cherry")
print(len(thistuple))
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")