the logical operation confused me

length power elearn2014 at gmail.com
Thu Apr 10 19:02:33 EDT 2014


>>> "ok" or "not ok"
'ok'
>>> "ok" and "not ok"
'not ok'
>>>

why "ok" or "not ok" output "ok"  , "ok" and "not ok"  output "not ok" ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140411/7b75d056/attachment.html>


More information about the Python-list mailing list