What does enumerate do?
0:12
Enumerate wraps an iterable and produces tuples of an index and the element. The default starting index is zero, but you can pass a start argument. It is the idiomatic way to iterate when you need both the position and the value.
docs.python.org