Thank you for your suggestion. This will help a lot.
On 2015-12-03 08:32 Jussi Piitulainen <[email protected]> wrote:
> list = [ item for item in list
> if ( 'Banana' not in item and
> 'Car' not in item ) ]
I often saw constructions like this
x for x in y if ...
But I don't understand that combination of the Python keywords (for,
in, if) I allready know. It is to complex to imagine what there really
happen.
I understand this
for x in y:
if ...
But what is about the 'x' in front of all that?
--
GnuPGP-Key ID 0751A8EC
--
https://mail.python.org/mailman/listinfo/python-list