Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

3d array

#!/usr/bin/env python3

list = []

for i in xrange(3):
    list.append([])
    for j in xrange(3):
        list[i].append(i+j)

print(list)
print(list[0][0])
print(list[1][2])
Source by pythonspot.com #
 
PREVIOUS NEXT
Tagged: #array
ADD COMMENT
Topic
Name
7+4 =