Why I am getting EOF error when i am run this below code? Can anyone help me please?

Problem code is - TEST

while True:
i = int(input())
if i == 42:
break
else:
print(i)

EOF error comes when you donot provide any input. Just give a input and you are good to go

2 Likes

Got it!! Thank you somuch.

1 Like