from random import randint
# Задание 1:
list_1 = [randint(20, 50) for i in range(10)]
print(*list_1)
# Задание 2:
counter = 0
list_2 = [randint(-100, 100) for i in range(10)]
for num in list_2:
if num < 0:
counter += 1
print("Отрицательных чисел:", counter)
# Задание 3:
list_3 = [randint(-10, 10) for i in range(5)]
print(sum(list_3))
from random import randint
# Задание 1:
list_1 = [randint(20, 50) for i in range(10)]
print(*list_1)
# Задание 2:
counter = 0
list_2 = [randint(-100, 100) for i in range(10)]
for num in list_2:
if num < 0:
counter += 1
print("Отрицательных чисел:", counter)
# Задание 3:
list_3 = [randint(-10, 10) for i in range(5)]
print(sum(list_3))