Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

2d array in python

# Using above first method to create a
# 2D array
rows, cols = (5, 5)
arr = [[0]*cols]*rows
print(arr)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #array #python
ADD COMMENT
Topic
Name
2+1 =