sum=0
while True:
sum = sum + int(input())
if sum < 0:
break
else:
print(sum)
Why am I getting this error?
Traceback (most recent call last):
File “script.py”, line 3, in
sum = sum + int(input())
EOFError: EOF when reading a line
sum=0
while True:
sum = sum + int(input())
if sum < 0:
break
else:
print(sum)
Why am I getting this error?
Traceback (most recent call last):
File “script.py”, line 3, in
sum = sum + int(input())
EOFError: EOF when reading a line