Question

How to create and populate a multidimensional list (i.e. list of list) in Python?


Annonce
Ad

Answer

>>> myList=[[1,2,3],[4,5]]
>>> myList
[[1, 2, 3], [4, 5]]


[source]
# ID Query