Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to create a 2d array in python

sizeX,sizeY = 8,5
Matrix = [[0]*sizeX]*sizeY
#quicker than a loop
Source by www.guru99.com #
 
PREVIOUS NEXT
Tagged: #create #array #python
ADD COMMENT
Topic
Name
8+1 =