RE: Test 0 and false since false is 0

2017-07-08 Thread Paul D. DeRocco
changed. That said, "x is 0" is even simpler. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com -- https://mail.python.org/mailman/listinfo/python-list

RE: Test 0 and false since false is 0

2017-07-07 Thread Paul D. DeRocco
lse is 0 > False Funny how the subject line inadvertently prefigures the answer: False *isn't* 0. False *equals* 0. So just change "==" to "is" and "!=" to "is not" and it should work. Also, it can be done in a single expression, with no local variables. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com -- https://mail.python.org/mailman/listinfo/python-list