title: I encountered EOF error in hacker rank engine while my code in my local machine works fine
body: <p>I am encountering this error in Hacker rank engine while running python3 on it.</p>
  <pre><code>Traceback (most recent call last):
    File &quot;Solution.py&quot;, line 8, in &lt;module&gt;
      name=input()
  EOFError: EOF when reading a line
  </code></pre>
  <p>My code is this</p>
  <pre><code>phonebook = {}
  total_entries = int(input(&quot;Total number of entries: &quot;))
  if 1 &lt;= total_entries &lt;= 10 ** 5:
      print(&quot;Enter names and number separated by space:&quot;)
      for entries in range(0, total_entries):
          items = input(&quot;Enter here:&quot;)
          items = items.split(&quot; &quot;)
          phonebook[items[0]] = int(items[1])
  queries = []
  while True:
      queries.append(input(&quot;Enter name to be searched:&quot;))
      k = queries[-1]
      if not k:
          break
  if 1 &lt;= len(queries) &lt;= 10 ** 5:
      for query in queries:
          if query == '':
              exit(0)
          elif query in phonebook.keys():
              print(f&quot;{query}={phonebook.get(query)}&quot;)
          else:
              print(&quot;Not found&quot;)
  
  </code></pre>
  <p>The link to the question is this if you require in case: <a href="https://www.hackerrank.com/challenges/30-dictionaries-and-maps/problem" rel="nofollow noreferrer">Question Link</a></p>
  <p>The code runs fine in my local machine. I don't know why it puts an error like this. Please suggest what I can do!</p>