Ответ:
Объяснение:
import random
a=[]
b=[]
c=[]
d=[]
for i in range(20):
a.append(random.randint(1,50))
print(a)
for i in a:
if i % 2 ==0:
b.append(i)
else:
c.append(i)
d=b+c
print(d)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
Объяснение:
import random
a=[]
b=[]
c=[]
d=[]
for i in range(20):
a.append(random.randint(1,50))
print(a)
for i in a:
if i % 2 ==0:
b.append(i)
else:
c.append(i)
d=b+c
print(d)