1Creating an empty list:
2
3>>> l = [None] * 10
4>>> l
5[None, None, None, None, None, None, None, None, None, None]
1>>> l = [None] * 10
2>>> l
3[None, None, None, None, None, None, None, None, None, None]
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]