from random import randint
n = int(input())
Matrix = [[randint(0, 100) for _ in range(n)] for _ in range(n)]
print(Matrix)
third_column = []
for i in range(n):
third_column.append(Matrix[i][2])
third_column.sort()
print(*third_column)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
from random import randint
n = int(input())
Matrix = [[randint(0, 100) for _ in range(n)] for _ in range(n)]
print(Matrix)
third_column = []
for i in range(n):
third_column.append(Matrix[i][2])
third_column.sort()
print(*third_column)