python initialize list length n

Solutions on MaxInterview for python initialize list length n by the best coders in the world

showing results for - "python initialize list length n"
Simón
02 May 2018
1Creating an empty list:
2
3>>> l = [None] * 10
4>>> l
5[None, None, None, None, None, None, None, None, None, None]