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: cad, bounder, blackguard, dog, hound, heel},
> {noun: frank, frankfurter, hotdog, hot_dog, dog, wiener, wienerwurst,
> weenie},
> {noun: pawl, detent, click, dog},
> {noun: andiron, firedog, dog, dog-iron}]
Doesn't look like a Python list to me. Is domestic_dog a variable? If
so, what's that "-" in "dog-iron"?
>
> to a list like this with python:
>
> [dog, domestic_dog, Canis_familiaris,
> frump, dog,
> dog,
> cad, bounder, blackguard, dog, hound, heel,
> frank, frankfurter, hotdog, hot_dog, dog, wiener, wienerwurst,
> weenie},
Do you really want the "}" in the above line and the next line?
> pawl, detent, click, dog},
> andiron, firedog, dog, dog-iron]
>
> Thank you.
>
> Sengly
--
http://mail.python.org/mailman/listinfo/python-list