Counting nested loop iterations

Derek Basch dbasch at
Thu Mar 16 21:43:10 CET 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