lists and append, and loop iteration

Jonathan Giddy jon at rdt.monash.edu.au
Thu Sep 23 01:48:38 EDT 1999


These must be some of the cool new control statements from a very early 
1.6 alpha release ;~)

Mark Krischer <mkrisch at radiata.com> writes:

>if i do:
>	for element in list:
>		do something with element


>i figure i can always do:
>	for i in range(len(list)):
>		do something with list[i]





More information about the Python-list mailing list