Re: [Tutor] searching for multiple strings in line.starswith()

2010-07-19 Thread Joel Goldstick
On Mon, Jul 19, 2010 at 2:07 PM, Luke Paireepinart wrote: > You are using Line.startswith incorrectly, read the docs on it and see if > you can figure out your problem an key us know. Pay attention to the > parameters it takes and the values it returns. > > Sent from my iPhone > > On Jul 19, 2010,

Re: [Tutor] searching for multiple strings in line.starswith()

2010-07-19 Thread Luke Paireepinart
You are using Line.startswith incorrectly, read the docs on it and see if you can figure out your problem an key us know. Pay attention to the parameters it takes and the values it returns. Sent from my iPhone On Jul 19, 2010, at 11:18 AM, Bala subramanian wrote: > Friends, > I have to extra

Re: [Tutor] searching for multiple strings in line.starswith()

2010-07-19 Thread Alan Gauld
"Bala subramanian" wrote I have to extract the line from a file that does not contain a set of strings in the start of the line, i wrote the following code. for index, line in enumerate(myvar.split('\n')): if line.startswith('') not in ['#Cluster','#Centroid','#End']: line.startswith()

[Tutor] searching for multiple strings in line.starswith()

2010-07-19 Thread Bala subramanian
Friends, I have to extract the line from a file that does not contain a set of strings in the start of the line, i wrote the following code. for index, line in enumerate(myvar.split('\n')): if line.startswith('') not in ['#Cluster','#Centroid','#End']: line=line.split() print l