Re: Question on List processing

2016-04-26 Thread Steven D'Aprano
On Wed, 27 Apr 2016 01:38 am, subhabangal...@gmail.com wrote: > I am trying to send you a revised example. > list1=[u"('koteeswaram/BHPERSN engaged/NA ','class1')", > u"('koteeswaram/BHPERSN is/NA ','class1')"] Please don't use generic names that mean nothing like "list1". We can see it is a li

Re: Question on List processing

2016-04-26 Thread Random832
On Tue, Apr 26, 2016, at 11:38, subhabangal...@gmail.com wrote: > I am trying to send you a revised example. > list1=[u"('koteeswaram/BHPERSN engaged/NA ','class1')", > u"('koteeswaram/BHPERSN is/NA ','class1')"] > > [('koteeswaram/BHPERSN engaged/NA ','class1'), > ('koteeswaram/BHPERSN is/NA '

Re: Question on List processing

2016-04-26 Thread subhabangalore
On Monday, April 25, 2016 at 10:07:13 PM UTC+5:30, Steven D'Aprano wrote: > > > > Dear Group, > > > > I have a list of tuples, as follows, > > > > list1=[u"('koteeswaram/BHPERSN engaged/NA himself/NA in/NA various/NA > [... 17 more lines of data ...] > > Hi Subhabrata, and thanks for the quest

Re: Question on List processing

2016-04-26 Thread subhabangalore
On Monday, April 25, 2016 at 10:07:13 PM UTC+5:30, Steven D'Aprano wrote: > On Tue, 26 Apr 2016 12:56 am, wrote: > > > Dear Group, > > > > I have a list of tuples, as follows, > > > > list1=[u"('koteeswaram/BHPERSN engaged/NA himself/NA in/NA various/NA > [... 17 more lines of data ...] > > Hi

Re: Question on List processing

2016-04-25 Thread Matt Wheeler
On Mon, 25 Apr 2016 15:56 , wrote: > Dear Group, > > I have a list of tuples, as follows, > > list1=[u"('koteeswaram/BHPERSN engaged/NA himself/NA in/NA various/NA > philanthropic/NA activities/NA ','class1')", u"('koteeswaram/BHPERSN is/NA > a/NA very/NA nice/NA person/NA ','class1')", u"('kot

Re: Question on List processing

2016-04-25 Thread Steven D'Aprano
On Tue, 26 Apr 2016 12:56 am, subhabangal...@gmail.com wrote: > Dear Group, > > I have a list of tuples, as follows, > > list1=[u"('koteeswaram/BHPERSN engaged/NA himself/NA in/NA various/NA [... 17 more lines of data ...] Hi Subhabrata, and thanks for the question. Please remember that we are

Re: Question on List

2008-06-27 Thread subhabrata . iisc
Hi Chris, I solved the problem some other way round but thanx for your suggestion, I'll review it also. Best Regards, Subhabrata. Chris wrote: > On Jun 27, 9:51�am, [EMAIL PROTECTED] wrote: > > Dear All, > > I am trying to write the following code: > > > > def try1(n): > > � � � � a1="God Godess B

Re: Question on List

2008-06-27 Thread Chris
On Jun 27, 9:51 am, [EMAIL PROTECTED] wrote: > Dear All, > I am trying to write the following code: > > def try1(n): >         a1="God Godess Borother Sister Family" >         a2=a1.split() >         a3=raw_input("PRINT A WORD") >         a4=a1.find(a3) >         print a4 >         a5=[] >