[Python-ideas] More classical for-loop

Chris Angelico rosuav at gmail.com
Fri Feb 17 22:31:40 EST 2017

On Sat, Feb 18, 2017 at 2:13 PM, Joao S. O. Bueno <jsbueno at python.org.br> wrote:
> One can start coding in Python if after a couple minutes of tutorial, he learns
> about "for", "if", "def" and a couple data primitives - and maybe
> "print" and "input"
> for some UI. So, out of 3 needed statements to start coding, you are doubling
> the syntax possibilities on one of them. There s no kidding about
> augmenting the "burden to learn" here.

And if you want a point of comparison, look at JavaScript's for loop.
What's the difference between "for (x in y)" and "for (x of y)"? When
should you use each one? More ways to use a fundamental statement ==
more confusion.


More information about the Python-ideas mailing list