put the words of a line in a array/list that can be referenced by an index using Python
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/743806/split-string-into-a-list-in-python">Split string into a list in Python</a>  </p>
</blockquote>



<p>I have a text text file,  2011 2012 332 1972 ...</p>

<p>I need to access the words of this line (stored in a text file) using some index, could be an array, like a[] should contain contents of a line , where every element of a[] should be a word. Now, when I run a for loop I can access the words of the a[] using some index. like a[0],a[1].
Please suggest some ways...</p>
