title: Extract a column from text file - Python
body: <p>I'm a beginner py.</p>
  
  <p>I need to extract the contents of column 12 from a huge flat text file every time a certain word is found within the text file (similar to <code>awk '{print $12}'</code> in Bash) in a Python script.</p>
  
  <p>So far I have (example, not real code):</p>
  
  <pre><code>word = a_word
  for a_word in data:
     column12 = data.split()
     print(column12[11])
  </code></pre>
  
  <p>I assumed that I should start counting from 0 as opposed to 1, though I very well may be incorrect.</p>
  
  <p>Also, is a <code>for</code> loop correct for this type of code?</p>
  
  <p>Thanks!</p>