Range Operation pre-PEP
Steve Holden
sholden at holdenweb.com
Thu May 10 01:29:04 EDT 2001
"Roman Suzi" <rnd at onego.ru> wrote in ...
> On Wed, 9 May 2001, Rainer Deyke wrote:
>
[ ... ]
>
> right now FUNCTIONS and LISTS are needed to understand
> for loop. (Even recursion is "easier" with just FUNCTIONS
> to know ;-)
>
I would argue you could teach for loops by using existing lists without any
function usage at all, as in (for example):
for dir in sys.path:
print dir
regards
STeve
More information about the Python-list
mailing list