comparison on list yields surprising result

John Machin sjmachin at lexicon.net
Fri Aug 28 15:16:59 EDT 2009


On Aug 29, 5:00 am, "Dr. Phillip M. Feldman" <pfeld... at verizon.net>
wrote:
> In [21]: x
> Out[21]: [1, 2, 3, 5]
>
> In [22]: x>6
> Out[22]: True
>
> Is this a bug?

No.

http://docs.python.org/reference/expressions.html#notin





More information about the Python-list mailing list