On Tue, Jun 28, 2016 at 8:41 AM Elizabeth Weiss <cake...@gmail.com> wrote:

> I do not understand the second code. What is counter?
>

It looks like someone wanted to make a loop induction variable.
https://en.wikipedia.org/wiki/Induction_variable


> Why do we use this code if we can use the simpler for loop?
>

You should not. Use the first version, it's much better. Python for-loops
are preferable to while-loops.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to