when I assign something to a 2d array in python it adds it to muliple indices code example
Example: 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()))