m,n=input().split( )
a=[[0]*int(n)]*int(m)
for i in range(0,int(m)):
s=input().split()
for j in range(0,int(n)):
a[i][j]=int(s[j])
print(a)
I wanted to input this info for creating a 2D list:
3 4
11 12 13 14
21 22 23 24
31 32 33 34
however, the result is:
31 32 33 34
31 32 33 34
31 32 33 34