How to take input in this task

how to take input in this program using lists .
i take a=list(map(int,input()))
but it is not accepted

Hello @mohdadil.5608, you need to take the input one by one and the format you are using is generally used when we have all the nos. in a single row but if the input format is that you will get a no. in a different line in that case just input it one by one using the loop.
I hope it will be clear to you, in case there is any confusion or issue pls let me know.
Thanks :slight_smile:

sir i did not find other test case . how to check other test case

becouse my first test cased are pass but other test case show fail how to find other test case what is input and output.

hey, have you changed the input format ?? and what is the issue now what it is showing ??
RE or TLE or WA ??

sir i am unable to take input, please help me how to take input

sum=0 y=[int(x) for x in input().split()] for i in range(len(y)): sum+=y[i]; if sum<0: break print(y[i]) this my code

can you sir rectify my code

Hey, @mohdadil.5608 you can refer this,

sum = 0

while True:
	n = int(input())
	sum += n
	if sum < 0:
		break
	print(n)

Pls, check how we have taken the input in this and how we are solving this