Counting nested loop iterations

Derek Basch dbasch at yahoo.com
Thu Mar 16 15:43:10 EST 2006


> Depending on the types of the containers in question, you could use:
>
> 	len(zoo) * len(animal)

I think this would give me the total iterations but I wouldn't be able
to get a running count. Correct?

Thanks for the reply,
Derek Basch




More information about the Python-list mailing list