how to declare list with size in python code example
Example 1: creating a list of size n in python
>>> my_list = [None] * 10
>>> my_list
[None, None, None, None, None, None, None, None, None, None]
Example 2: python create a list with fixed size
>>> [None]*10
[None, None, None, None, None, None, None, None, None, None]