from random import shuffle
from pprint import pprint
from operator import mul
from itertools import starmap
n = 5
tmp = list(range(10, n * n + 10))
shuffle(tmp)
matrix = [tmp[i:i + n] for i in range(0, n * n, n)]
pprint(matrix)
print()
row = max(matrix, key=max)
print('row', row)
col = min(zip(*matrix), key=min)
print('col', col)
print('row*col', sum(starmap(mul, zip(row, col))))