How to fix "EOF error when reading a line" - Stack Overflow
2. I think wherever it is you are running this, it does not support input. I've seen this happen using SublimeText. If you are using SublimeText, install SublimeREPL. That would solve this problem. – idjaw. Jul 10, 2016 at 1:59. Line 5 in your code does not contain input .