create list with values size python code example
Example: creating a list of size n in python
>>> my_list = [None] * 10
>>> my_list
[None, None, None, None, None, None, None, None, None, None]
>>> my_list = [None] * 10
>>> my_list
[None, None, None, None, None, None, None, None, None, None]