a = list(map(int, input().split()))
p = 0
n = 0
for i in range(len(a)):
if a[i] > 0:
p += 1
elif a[i] == 0:
n += 1
print('+:', p, '0:', n)
Если выдаёт ошибку:
https://ideone.com/b3Epgb
a = list(map(int, input().split()))
p = 0
n = 0
for i in range(len(a)):
if a[i] > 0:
p += 1
elif a[i] == 0:
n += 1
print('+:', p, '0:', n)
Если выдаёт ошибку:
https://ideone.com/b3Epgb