What is the problem with following code.
I am getting error EOF.
Thanks in advance.
num=0
cummsum=0
while cummsum >=0:
try:
num=int(input())
if(1000>=num>=-1000):
cummsum=num+cummsum
print (cummsum)
if cummsum<0:
print (“cummulative sum is negavive”)
else:
print (“Number enterned in invalid”)
except ValueError:
print(“This is not a number.”)

