if statement multiple or

Lutfi Oduncuoglu lutfioduncuoglu at gmail.com
Fri May 6 06:47:12 EDT 2011


Hi,

I am trying to write a script and I realised that I need to use something
like

if ('a' or 'b' or 'c')  not in line:
   print line

But it does not work for. What may be the problem

Thanks,

Lutfi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110506/602d49f8/attachment.html>


More information about the Python-list mailing list