Sync-up parameter name in equivalent code snippet of enumerate
(GH-101029)
This commit is contained in:
parent
5134ef4878
commit
ef633e5000
@ -505,9 +505,9 @@ are always available. They are listed here in alphabetical order.
|
||||
|
||||
Equivalent to::
|
||||
|
||||
def enumerate(sequence, start=0):
|
||||
def enumerate(iterable, start=0):
|
||||
n = start
|
||||
for elem in sequence:
|
||||
for elem in iterable:
|
||||
yield n, elem
|
||||
n += 1
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user