True == 1 weirdness

Ian Kelly ian.g.kelly at gmail.com
Wed Sep 16 13:57:12 EDT 2015


On Wed, Sep 16, 2015 at 11:24 AM, Steven D'Aprano <steve at pearwood.info> wrote:
>
> if word in line in text:
>     print("word in line and line in text")

It find it hard to imagine how one would arrive at the situation of
needing to check this.



More information about the Python-list mailing list