Re: [Tutor] Writing processed text to another file(beginner)

2011-11-05 Thread Dave Angel
On 11/05/2011 03:31 PM, Mayo Adams wrote: Thank you for your reply, this is all I needed to know: the loop is over when you outdent back to line up with the for statement Indeed, the indentation rules are very simple. I just wanted to be sure about what they were. Sounds good. Three

Re: [Tutor] Writing processed text to another file(beginner)

2011-11-05 Thread Dave Angel
On 11/05/2011 03:04 PM, Mayo Adams wrote: Code to build a list z to contain all the first words in each line of a text file: z=[] f=open('C:/atextfile.txt') for aLine in f: str=aLine a=str.split() z.append(a) I would like to work further with the list z once the file has been stripped, an

[Tutor] Writing processed text to another file(beginner)

2011-11-05 Thread Mayo Adams
Code to build a list z to contain all the first words in each line of a text file: z=[] f=open('C:/atextfile.txt') for aLine in f: str=aLine a=str.split() z.append(a) I would like to work further with the list z once the file has been stripped, and the list is complete but am so clueless ab