Logic operators with "in" statement

Mr.SpOOn mr.spoon21 at gmail.com
Mon Nov 16 09:08:54 EST 2009


Sorry for replying to myself, but I think I understood why I was wrong.

The correct statement should be something like this:

In [13]: ('b3' and '5') in l or ('3' and 'b3') in l
Out[13]: True



More information about the Python-list mailing list