title: Python3 best way to read unknown multi line input
body: <p>What is the best way in Python 3 to read in multi-line user input when the amount of input is unknown? The multi-line input will be separated by Enter</p>
  
  <p>when I try using</p>
  
  <pre><code>while True:
      line = input()
      if line:
            print(line)
      else:
            break
  </code></pre>
  
  <p>I receive an EOFError</p>
  
  <p>Then if I change it to a try-catch block</p>
  
  <pre><code>while True:
      line = input()
      try:
            print(line)
      except EOFError:
            break
  </code></pre>
  
  <p>I still get the EOFError.</p>