Python 2_1:
positive = 0
negative = 0
while True:
a = int(input('Введите число или 0 для выхода: '))
if a > 0: positive += a
elif a < 0: negative += a
else: break
print('сумма положительных:', positive, ', сумма отрицательных:', negative)
Python 2_3:
minimal = None
for i in range(10):
a = int(input(f'Введите {i+1}-е число: '))
if a > 0 and a%2 == 0 and (minimal is None or a < minimal): minimal = a
print('Результат:', minimal)