title: Scan through txt, append certain data to an empty list in Python
body: <p>I have a text file that I am reading in python . <strong>I'm trying to extract certain elements from the text file that follow keywords to append them into empty lists</strong> . The file looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/vuqLh.png" alt="enter image description here"></p>
  
  <p>so I want to make two empty lists </p>
  
  <ul>
  <li><p>1st list will append the sequence names </p></li>
  <li><p>2nd list will be a list of lists which will include be in the format <code>[Bacteria,Phylum,Class,Order, Family, Genus, Species]</code></p>
  
  <p>most of the organisms will be Uncultured bacterium . I am trying to add the Uncultured bacterium with the following IDs that are separated by ;</p></li>
  </ul>
  
  <p><strong>Is there anyway to scan for a certain word and when the word is found, take the word that is after it [separated by a '\t'] ?</strong> </p>
  
  <p>I need it to create a dictionary of the Sequence Name to be translated to the taxonomic data .</p>
  
  <p>I know i will need an empty list to append the names to:</p>
  
  <pre><code>seq_names=[ ]
  </code></pre>
  
  <p>a second list to put the taxonomy lists into</p>
  
  <pre><code>taxonomy=[ ]
  </code></pre>
  
  <p>and a 3rd list that will be reset after every iteration</p>
  
  <pre><code>temp = [ ]
  </code></pre>
  
  <p><em>I'm sure it can be done in Biopython but i'm working on my python skills</em></p>