Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

2d list in python

def list_2D(r, c):
    l = []
    for i in range(r):
        x = [0] * c
        l.append(x)
    return l
Source by nullorempty.org #
 
PREVIOUS NEXT
Tagged: #list #python
ADD COMMENT
Topic
Name
2+8 =