Operator Precedence/Boolean Logic

Lawrence D’Oliveiro lawrencedo99 at gmail.com
Thu Jun 23 04:53:18 EDT 2016


On Thursday, June 23, 2016 at 8:17:02 PM UTC+12, Marko Rauhamaa wrote:
>     if len(leftover) > 0:    # no, I'd never write this
>         ...

I regularly write “len(leftover) != 0”. Why not?



More information about the Python-list mailing list