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
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
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