Padskiiz Padskiiz - 13 days ago 7
Python Question

EOF error from input()

while 1:
print function()
input()


This returns an EOF error I am just try to make it run the next iteration of the loop when I press enter

Please help, thank you

Answer

Use raw_input as opposed to input (input is for Python 3 (mainly))

Also if that still doesn't work, try assigning a variable to input(), or use an empty string between the parenthesis

IE

a = input()

raw_input('')

Comments