n = int(input())
mat = []
for i in range(n):
row = map(int, input().split())
mat.append(row)
print(mat)
when i run this code i get the following o/p
[map object at 0x7f30e08ccba8, map object at 0x7f30df3a3438, map object at 0x7f30df3a3518]