from random import randint
li=[randint(100,200) for i in range(40)]
k=[]
for i in li:
if i>=130 and i<=200:
k.append(str(i))
print(" ".join(k))
print("="*20)
print(f'Max - {max(li)}')
print(f"Min - {min(li)}")
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
from random import randint
li=[randint(100,200) for i in range(40)]
k=[]
for i in li:
if i>=130 and i<=200:
k.append(str(i))
print(" ".join(k))
print("="*20)
print(f'Max - {max(li)}')
print(f"Min - {min(li)}")