Answers for "how to add elements in 2d array in python"

6

python append to 2d array

temp_list = [[], [], [], []]
temp_list[0].append("a1")
temp_list[1].append("a2")
temp_list[2].append("a3")
temp_list[3].append("a4")
Posted by: Guest on May-16-2020
0

python 2d array append

arr = []
arr.append([])
arr[0].append('aa1')
arr[0].append('aa2')
Posted by: Guest on February-19-2021
0

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()))
Posted by: Guest on April-07-2021

Code answers related to "how to add elements in 2d array in python"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language