[Tutor] Lists in a file
davholla2002 at yahoo.co.uk
Sun Apr 26 20:03:41 CEST 2009
I am trying to create a program where I open a file full of lists and process them.
However when the program does not recognize the lists as lists.
Here is the relevant code :-
text_file =open ("voteinp.txt","r")
lines = text_file.readlines()
for line in lines:
And an example of the type of text :-
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor