I tried to create this code to input an m by n matrix. I intended to input [[1,2,3],[4,5,6]] but the code yields [[4,5,6],[4,5,6]. Same things happ
[[1,2,3],[4,5,6]]
[[4,5,6],[4,5,6]
a,b=[],[] n=int(input("Provide me size of squre matrix row==column : ")) for i in range(n): for j in range(n): b.append(int(input())) a.append(b) print("Here your {} column {}".format(i+1,a)) b=[] for m in range(n): print(a[m])
works perfectly