Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add elements in 2d array in python

n,m=int(input()),int(input())
   for i in range(0,n):
      for j in range(0,m):
         a[i].append(int(input()))
 
PREVIOUS NEXT
Tagged: #add #elements #array #python
ADD COMMENT
Topic
Name
4+1 =