Getting eof while trying to get input

in this program i am getting error while trying to get input

def printPos(l,count=0,sum=0):
if(count==len(l)):
return
else:
sum+=l[count]
if(sum>0):
print(l[count])
printPos(l,count+1,sum)
else:
return

driver program

if name==‘main’:
l = list(map(int,input().split()))
printPos(l)

hi, we take input by using( for single input variable):
n = int(raw_input())

for multiple input(array like):
input_array = [int(x) for x in raw_input().split()]

Correct your print statement. Its wrong. Its either print(Pos(l)) or print Pos(l) , depeding upon your python version

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.