<p>I could swear I've seen the function (or method) that takes a list, like this <code>[3, 7, 19]</code> and makes it into iterable list of tuples, like so: <code>[(0,3), (1,7), (2,19)]</code> to use it instead of:</p>

<pre><code>for i in range(len(name_of_list)):
    name_of_list[i] = something
</code></pre>

<p>but I can't remember the name and googling "iterate list" gets nothing.</p>

```
```
>>> a = [3,4,5,6]
>>> for i, val in enumerate(a):
...     print i, val
...
0 3
1 4
2 5
3 6
>>>
```
```