title: Python3 EOFError: EOF when reading a line Hackerrank, or any online portal
body: <p>I always get this error whenever using input() in Python3 in any online compiler, hackerrank, wipro portal, interviewbit etc. I've seen so many posts regarding this, but none of them is working for me. try except block leads to always execution of the except block which I don't want as I'm still not able to read any input.
  Even as simple as the following code doesn't work. Help.</p>
  
  <pre><code>b = int(input())
  print (b)
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "main.py", line 227, in 
      Z = obj.solve(A)
    File "/tmp/judge/solution.py", line 9, in solve
      b = int(input())
  EOFError: EOF when reading a line
  </code></pre>