from itertools import izip, count
def enumerate(a, b=None):
if b is None:
start, iterable = 0, a
start, iterable = a, b
return izip(count(start), iterable)
| Contact Us
© 2023 ActiveState Software Inc. All rights reserved.
ActiveState®, Komodo®, ActiveState Perl Dev Kit®,
ActiveState Tcl Dev Kit®, ActivePerl®, ActivePython®,
and ActiveTcl® are registered trademarks of ActiveState.
All other marks are property of their respective owners.