from random import randint
lst = [[randint(10, 99) for _ in range(4)] for _ in range(4)]
[print(*_) for _ in lst]
mx = max([max(_) for _ in lst])
mn = min([min(_) for _ in lst])
for i in range(4):
for j in range(4):
if lst[i][j] == mx:
print(f'Максимальный элемент A[{i + 1}][{j + 1}]={mx}')
mx = 0
if lst[i][j] == mn:
print(f'Минимальный элемент A[{i + 1}][{j + 1}]={mn}')
mn = 0