Posts by Jeferson Souza Pazze • 1 point
1 post
-
-1
votes3
answers844
viewsA: How to initialize a list of empty lists?
You can use the list comprehension: lista = [[] for _ in xrange(n)] https://pythonacademy.com.br/blog/list-comprehensions-no-python…