What is the best way to count nested loop iterations? I can only figure to use an index but that seems kludgy.
index = 0 for animal in zoo: for color in animal: index += 1 Thanks, Derek Basch -- http://mail.python.org/mailman/listinfo/python-list
What is the best way to count nested loop iterations? I can only figure to use an index but that seems kludgy.
index = 0 for animal in zoo: for color in animal: index += 1 Thanks, Derek Basch -- http://mail.python.org/mailman/listinfo/python-list