Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

2d array in python


# 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 nullorempty.org #
 
PREVIOUS NEXT
Tagged: #array #python
ADD COMMENT
Topic
Name
4+6 =