Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python create n*n matrix

# Creates a list containing 5 lists, each of 8 items, all set to 0
w, h = 8, 5;
Matrix = [[0 for x in range(w)] for y in range(h)] 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #create #matrix
ADD COMMENT
Topic
Name
7+2 =