Re: simple question on list manipulation from a newbie

2008-06-08 Thread John Machin
On Jun 8, 4:42 pm, Sengly <[EMAIL PROTECTED]> wrote: [snip] > Thank you all for your help. I found a solution as the following: The following is a solution to what? > > alist = [ > {'noun': 'dog', 'domestic_dog', 'Canis_familiaris'}, That is not yet valid Python. You will get a syntax error

Re: simple question on list manipulation from a newbie

2008-06-07 Thread Sengly
On Jun 8, 6:38 am, Sam Denton <[EMAIL PROTECTED]> wrote: > Sengly wrote: > > Dear all, > > > I am working with wordnet and I am a python newbie. I'd like to know > > how can I transfer a list below > > > In [69]: dog > > Out[69]: > > [{noun: dog, domestic_dog, Canis_familiaris}, > >  {noun: frump,

Re: simple question on list manipulation from a newbie

2008-06-07 Thread Sam Denton
Sengly wrote: Dear all, I am working with wordnet and I am a python newbie. I'd like to know how can I transfer a list below In [69]: dog Out[69]: [{noun: dog, domestic_dog, Canis_familiaris}, {noun: frump, dog}, {noun: dog}, {noun: cad, bounder, blackguard, dog, hound, heel}, {noun: frank,

Re: simple question on list manipulation from a newbie

2008-06-07 Thread John Machin
On Jun 8, 5:14 am, Sengly <[EMAIL PROTECTED]> wrote: > Dear all, > > I am working with wordnet and I am a python newbie. I'd like to know > how can I transfer a list below > > In [69]: dog > Out[69]: > [{noun: dog, domestic_dog, Canis_familiaris}, > {noun: frump, dog}, > {noun: dog}, > {noun: ca

Re: simple question on list manipulation from a newbie

2008-06-07 Thread Larry Bates
Sengly wrote: Dear all, I am working with wordnet and I am a python newbie. I'd like to know how can I transfer a list below In [69]: dog Out[69]: [{noun: dog, domestic_dog, Canis_familiaris}, {noun: frump, dog}, {noun: dog}, {noun: cad, bounder, blackguard, dog, hound, heel}, {noun: frank,

simple question on list manipulation from a newbie

2008-06-07 Thread Sengly
Dear all, I am working with wordnet and I am a python newbie. I'd like to know how can I transfer a list below In [69]: dog Out[69]: [{noun: dog, domestic_dog, Canis_familiaris}, {noun: frump, dog}, {noun: dog}, {noun: cad, bounder, blackguard, dog, hound, heel}, {noun: frank, frankfurter, ho