Использование:
N = 5 # Shape of the square matrix(NxN)
matrix = [list(map(int, input().split())) for _ in range(N)]
print(matrix)
print("Element at 2 row and 5 column is:", matrix[1][4])
Выход:
[[0, 0, 0, 0, 0],
[0, 0, 0, 0, 1],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0]]
Element at 2 row and 5 column is: 1