Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- tablica = [[random.randint(10,99) for x in range(10)] for x in range(10)]
- kolumna = int(input("Wybierz kolumne od 1 do 10: "))
- def minimum(kol):
- return min(row[kol - 1] for row in tablica)
- def maximum(kol):
- return max(row[kol - 1] for row in tablica)
- def generuj():
- for row in tablica:
- print(*row)
- generuj()
- print(f"Wartość minimalna: {minimum(kolumna)}")
- print(f"Wartość maksymalna: {maximum(kolumna)}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement