Hi,
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 :-
def open_filedef():
text_file =open ("voteinp.txt","r")
lines = text_file.readlines()
for line in lines:
print line
print line[0]
text_file.close()
And an example of the type of text :-
['a','b','c']
['e','d','f']
Any ideas?
Thanks in advance
David Holland
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor