3-я задача
import random
a=[]
for t in range(random.randint(0,50)):
a.append(random.randint(0,50))
print(min(a))
4-я задача
import random
a=[]
for t in range(random.randint(10,15)):
a.append(random.randint(10,20))
n = 1
while n < len(a):
for i in range(len(a)-n):
if a[i+1] > a[i]:
a[i+1],a[i] = a[i],a[i+1]
n += 1
print(a)