title: Adding for-loop elements to a list
body: <p>I'm writing a code where it fetches some text from a site and then, with a for-loop I take the part of the text of my interest. I can print this text but I would like to know how can I send it to a list for latter use. So far the code I've wrote is this one.</p>
  
  <pre><code>import urllib2
  
  keyword = raw_input('keyword: ')
  
  URL = "http://www.uniprot.org/uniprot/?sort=score&amp;desc=&amp;compress=no&amp;query=%s&amp;fil=&amp;limit=10&amp;force=no&amp;preview=true&amp;format=fasta" % keyword
  
  filehandle = urllib2.urlopen(URL)
  
  url_text = filehandle.readlines()
  
  for line in url_text:
      if line.startswith('&gt;'):
          print line[line.index(' ') : line.index('OS')]
  </code></pre>