Transcrypt icon indicating copy to clipboard operation
Transcrypt copied to clipboard

`enumerate` does not obey the `start=` parameter

Open halloleo opened this issue 4 years ago • 1 comments

When I run in Transcrypt:

for i, c in enumerate(['a', 'b', 'c'], start=1):
    print(I, c)

I get the output:

0 a
1 b
2 c

while CPython gives me the expected:

1 a
2 b
3 c

halloleo avatar Jan 13 '22 09:01 halloleo

I just created a PR that adds this argument to the Transcrypt version.

JennaSys avatar Feb 06 '22 03:02 JennaSys