DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+7 =
Submit