Padskiiz Padskiiz - 1 year ago 126
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()


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download