On Aug 8, 11:00 am, [EMAIL PROTECTED] wrote:
> Hi,
>
> I'm playing around with list comprehension, and I'm trying to find the
> most aesthetic way to do the following:
>
> I have two lists:
>
> noShowList = ['one', 'two', 'three']
>
> myList = ['item one', 'item four', 'three item']
>
> I want to show all the items from 'myList' that do not contain any of
> the strings in 'noShowList'.

I'm still learning these myself, but I think what you want is
itertools:

http://docs.python.org/lib/module-itertools.html


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to