Range Operation pre-PEP

Fredrik Lundh fredrik at pythonware.com
Wed May 9 21:23:46 CEST 2001


Roman Suzi wrote:
> Please, recall the main reason for the new feature:
>
> - to allow beginners learn loops BEFORE they learn
> lists and functions (which are needed now to explain
> for-loop).
>
> Even recursion could be explained without lists in Python,
> why for-loops need this prerequisite?

done much python training lately, or are you just making
things up as you go?

(in my experience, you don't have to understand much
about functions and lists to learn how to *use* range in
simple for-in loops...)

Cheers /F





More information about the Python-list mailing list