Re: Index of entity in List with a Condition

2018-06-12 Thread Cameron Simpson
On 12Jun2018 21:06, Subhabrata Banerjee wrote: Dear Sir, Thank you for your kind reply. I am trying in few days time and getting back. I made a small fix of my own and I would discuss it, too. Thank you for your kind words, but I ignore unnecessary remarks. So please do not worry. Meanwhile,

Re: Index of entity in List with a Condition

2018-06-12 Thread subhabangalore
On Wednesday, June 13, 2018 at 6:30:45 AM UTC+5:30, Cameron Simpson wrote: > On 11Jun2018 13:48, Subhabrata Banerjee wrote: > >I have the following sentence, > > > >"Donald Trump is the president of United States of America". > > > >I am trying to extract the index 'of', not only for single but als

helpfulness Re: Index of entity in List with a Condition

2018-06-12 Thread Cameron Simpson
On 11Jun2018 18:03, Rick Johnson wrote: subhaba...@gmail.com wrote: I have the following sentence, "Donald Trump is the president of United States of America". [...] Typically when you ask us to do your homework for you, it is considered bad taste to present the teacher's assignment verbati

Re: Index of entity in List with a Condition

2018-06-12 Thread Cameron Simpson
On 11Jun2018 13:48, Subhabrata Banerjee wrote: I have the following sentence, "Donald Trump is the president of United States of America". I am trying to extract the index 'of', not only for single but also for its multi-occurance (if they occur), from the list of words of the string, made by

Re: Index of entity in List with a Condition

2018-06-11 Thread Rick Johnson
subhaba...@gmail.com wrote: > I have the following sentence, > > "Donald Trump is the president of United States of America". > > I am trying to extract the index 'of', not only for single but also > for its multi-occurance (if they occur), from the list of words of the > string, made by simply