Программа:
Python:
from random import randint
l1 = [randint(-10, 10) for i in range(10)]
l2 = [randint(-10, 10) for i in range(10)]
b = int(input('b = '))
if b < 0:
l1 += l2
print(l1)
else:
l2 += l1
print(l2)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Программа:
Python:
from random import randint
l1 = [randint(-10, 10) for i in range(10)]
l2 = [randint(-10, 10) for i in range(10)]
b = int(input('b = '))
if b < 0:
l1 += l2
print(l1)
else:
l2 += l1
print(l2)