3 ms·
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 ==
by apricot 6y ago
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 6y agoI believe COBOL supports this.