m, n = map(int, input().split())
k = int(input())
matrix = [[int(_) for _ in input().split()] for _ in range(m)]
matrix.insert(k-1, [0] * m)
print(matrix)
Именно номер, не индекс.
m, n = map(int, input().split())
k = int(input())
matrix = [[int(_) for _ in input().split()] for _ in range(m)]
matrix.insert(k-1, [0] * m)
print(matrix)
Именно номер, не индекс.