Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
apricot
on May 2, 2020
|
parent
|
context
|
favorite
| on:
Why does `True == False is False` evaluate to Fals...
I sometimes teach programming to beginners who have some knowledge of math. A common mistake they make is to write compound conditionals like this:
if a == 2 or 3: do stuff
because that's how they would write it in math. Does that mean Python is broken and should support that construct as well?
edflsafoiewq
on May 2, 2020
[–]
I believe COBOL supports this.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: