enumerate takes a start index
@narwhalix▲ 5 net votes
for i, x in enumerate(items, start=1): counts from 1 instead of 0.
4 COMMENTS
Notable
Stellar
Neat
Seamless
for i, x in enumerate(items, start=1): counts from 1 instead of 0.
Notable
Stellar
Neat
Seamless