title: Splitting lines from a text file in Python 3
body: <p>I am trying to using split line on a text file that looks like this:</p>
  
  <pre><code>12/1 AH120 LAX PEK 12:30 21:00
  12/2 C32 PEK HNA 12:40 20:00
  12/3 D34 MON DOE 3:00 4:00
  12/5 A100 ICS SEL 4:00 12:00
  </code></pre>
  
  <p>Here is the code : </p>
  
  <pre><code>f = open('flights.txt', 'r')
  
  for line in f:
      x = f.readline()
      y = x.split()
      print(y)
  </code></pre>
  
  <p>The problem I have is that instead of giving me lists of each line, it skips a few lines and the output is such that is looks like this:</p>
  
  <pre><code>['12/2', 'C32', 'PEK', 'HNA', '12:40', '20:00']
  ['12/3', 'D34', 'MON', 'DOE', '3:00', '4:00']
  </code></pre>
  
  <p>As you can see it is missing the lines beginning with 12/1 and 12/5.
  I don't know why I am running into this problem. Can anyone tell me what I am doing wrong?</p>