Possible Duplicate:
Split string into a list in Python
I have a text text file, 2011 2012 332 1972 ...
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...