[Tutor] Extracting words..
Alexandre Ratti
alex@gabuzomeu.net
Mon, 25 Mar 2002 19:55:36 +0100
Hi Alan,
At 11:11 25/03/2002 -0500, you wrote:
>From: alan.gauld@bt.com
>Subject: RE: [Tutor] Extracting words..
>Date: Sun, 24 Mar 2002 23:55:38 -0000
>True, but at least its shorter to code using map:
>
> > Lst = ['JavaScript', 'MacWeek', 'MacWeek', 'CompuServe', 'CompuServe' ]
>
> Lst = map(lambda item: item not in Lst, Lst)
Does this snippet work on your computer? I get "[0, 0, 0, 0, 0]".
Cheers.
Alexandre