Re: Index in a list

2012-10-17 Thread Hans Mulder
On 17/10/12 12:10:56, Anatoli Hristov wrote: > I'm trying to index a text in a list as I'm importing a log file and > each line is a list. > > What I'm trying to do is find the right line which contains the text > User : and take the username right after the text "User :", but the > list.index("(U

Re: Index in a list

2012-10-17 Thread Anatoli Hristov
Thanks a lot this solved my issue:) Regards Anatoli On Wed, Oct 17, 2012 at 12:23 PM, Chris Angelico wrote: > On Wed, Oct 17, 2012 at 9:10 PM, Anatoli Hristov wrote: >> Hello, >> >> I'm trying to index a text in a list as I'm importing a log file and >> each line is a list. >> >> What I'm tryi

Re: Index in a list

2012-10-17 Thread Chris Angelico
On Wed, Oct 17, 2012 at 9:10 PM, Anatoli Hristov wrote: > Hello, > > I'm trying to index a text in a list as I'm importing a log file and > each line is a list. > > What I'm trying to do is find the right line which contains the text > User : and take the username right after the text "User :", bu