On Fri, May 6, 2011 at 4:02 AM, Albert Hopkins <mar...@letterboxes.org> wrote:
> On Fri, 2011-05-06 at 13:47 +0300, Lutfi Oduncuoglu wrote:
>> 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
>>
>
> The expression:
>    ('a' or 'b' or 'c')
>
> evaluates to True

Not quite:

$ python
Python 2.6.6 (r266:84292, Jan 12 2011, 13:35:00)
>>> 'a' or 'b' or 'c'
'a'
>>>

Cheers,
Chris
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to