enumerate is easy to use:
...which prints out:
#0: h #1: e #2: l #3: l #4: o
You can use it on just about any iterable sequence.
enumerate is easy to use:
...which prints out:
#0: h #1: e #2: l #3: l #4: o
You can use it on just about any iterable sequence.
UsingEnumerate (last edited 2008-11-15 13:59:44 by localhost)
Unable to edit the page? See the FrontPage for instructions.