title: Python does not loop over the file when piped in
body: <p>I have a python file that's supposed to iterate via splitting lines but it only shows the first line and does not iterate.</p>
  <p>Command that I run:</p>
  <pre><code>MINGW64 ~/Desktop (master)
  $ cat input.txt | python deneme 16:20
  1/30
  </code></pre>
  <p>Input.txt:</p>
  <pre><code>30 1
  45 *
  * *
  * 19
  </code></pre>
  <p>Code: Deneme.py</p>
  <pre><code>#  Getting the list input
  str_list = input().splitlines();
  
  for i in str_list:
      minute = i.split()[0]
      hour = i.split()[1]
      print(hour + &quot;/&quot; + minute)
  </code></pre>
  <p>Solution:</p>
  <pre><code>import sys
  
  for i in iter(sys.stdin.readline, ''):
     minute = i.split()[0]
     hour = i.split()[1]
     print(hour + &quot;/&quot; + minute)
  </code></pre>