from random import randint
def show(arr):
for i in arr:
for j in i:
print(j, end="\t")
print()
arr = [[randint(1, 300)for i in range(4)] for i in range(5)]
show(arr)
maxi = 0
if maxi < i[1]:
maxi = i[1]
print("Максимальний елемент другого стовпця =", maxi)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
from random import randint
def show(arr):
for i in arr:
for j in i:
print(j, end="\t")
print()
arr = [[randint(1, 300)for i in range(4)] for i in range(5)]
show(arr)
maxi = 0
for i in arr:
if maxi < i[1]:
maxi = i[1]
print("Максимальний елемент другого стовпця =", maxi)