Padskiiz Padskiiz - 10 months ago 78
Python Question

EOF error from input()

while 1:
print function()

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 Source

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


a = input()