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")
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")
python 2d array append
arr = []
arr.append([])
arr[0].append('aa1')
arr[0].append('aa2')
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()))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us