Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

initialize 2d array of zeros python

For Python 3.x
arr = dp = [[0] * col for _ in range(row)]
 
PREVIOUS NEXT
Tagged: #initialize #array #zeros #python
ADD COMMENT
Topic
Name
5+8 =