a = [0]
for i, el in enumerate(a):
    if i % 2 == 0:
        a.append(i)
print((i, el))
a
for i, el in enumerate(a):
    if i % 2 == 0:
        a.append(i)
print((i, el))
a
Do I need a lock block to iterate on a shared list?