inrtialise list of length n code example
Example 1: python initialize list length n
Creating an empty list:
>>> l = [None] * 10
>>> l
[None, None, None, None, None, None, None, None, None, None]
Example 2: how to find length of list python
my_list = [1,2,3,4,5,6,7,8,9,10]
length_of_list = len(my_list)