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)
Именно номер, не индекс.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
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)
Именно номер, не индекс.