Re:Why does `True == False is False` evaluate to False in Py...
by apricot on Saturday May 02, 2020 @11:02AM
(#23052141)
I sometimes teach programming to beginners who have some knowledge of math. A common mistake they make is to write compound conditionals like this:
because that's how they would write it in math. Does that mean Python is broken and should support that construct as well?
[ Parent
| on HN ]
Re:Why does `True == False is False` evaluate to False in Py...
by edflsafoiewq on Saturday May 02, 2020 @05:14PM
(#23054970)
I believe COBOL supports this.