Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


I believe COBOL supports this.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: