numlist=[int(x) for x in input().split()]
s=0
c=0
for i in numlist:
s=s+i
c=c+1
if(s<0):
for j in range(0,c-1):
print(numlist[j])
This is my code . I am facing difficulty in taking any no. of inputs in different lines . My code is valid for inputs in same line .I tried a lot but could not resolve.Please help!
I want the inputs to be in different lines.