Derek Basch wrote: >> 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?
Correct. If you need a running count, maintain a counter (or enumerate()). -- http://mail.python.org/mailman/listinfo/python-list