from random import randint
c = [randint(-10,10) for i in range(12)]
print(f"Наим = {min(c)}, его номер = {c.index(min(c))}")
print(f"Наиб = {max(c)}, его номер = {c.index(max(c))}")
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
from random import randint
c = [randint(-10,10) for i in range(12)]
print(f"Наим = {min(c)}, его номер = {c.index(min(c))}")
print(f"Наиб = {max(c)}, его номер = {c.index(max(c))}")