xxxxxxxxxx
my_list = [1, 2, 3, 4, 5]
list_size = len(my_list)
print("Size of the list:", list_size)
xxxxxxxxxx
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")
xxxxxxxxxx
li = [None] * 5 # [None, None, None, None, None]
li = [0] * 5 # [0, 0, 0, 0, 0]
xxxxxxxxxx
# plz suscribe to my youtube channel -->
# https://www.youtube.com/channel/UC-sfqidn2fKZslHWnm5qe-A
#get length of list
list_example = ["python","ruby","java","javascript","c#","css","html"]
print(len(list_example))