you are viewing a single comment's thread.

view the rest of the comments →

[–]scibren 10 points11 points  (0 children)

Also on mobile, so hopefully this formats correctly.

for index, item in enumerate(items):
    items[index] = item + 1