1# 2.X only. Use list(range(10)) in 3.X.
2>>> l = range(10)
3>>> l
4[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
1list_1 = ["Hello", 1, "World", 2]
2# if you want length of this lins use len() function
3print(len(list_1))
4
5# if you want size in bytes
6import sys
7print(sys.getsizeof(list_1), "Bytes")