Question: I'm trying to figure out how to manually enumerate a list however I'm stuck as I cannot figure out how to split up the `data` list. This is the code I have so far..

```
enumerated_list = []
data = [5, 10, 15]

for x in (data):
    print(x)

for i in range(len(data)):
    enumerate_rule = (i, x)
    enumerated_list.append(enumerate_rule)

print(enumerated_list)

```

This prints out..

```
5
10
15
[(0, 15), (1, 15), (2, 15)]

```

When what I'm after is `[(0, 5), (1, 15), (2, 15)]`. How would I go about this?

Answer: 
Since `x` goes through every element in `data, at the end of:

```
for x in (data):
    print(x)

```

`x` will be the last element. Which is why you get `15` as the second element in each tuple: 

```
[(0, 15), (1, 15), (2, 15)]

```

You only need one loop:

```
for i in range(len(data)):
    enumerate_rule = (i, data[i]) # data[i] gets the ith element of data
    enumerated_list.append(enumerate_rule)

```
`enumerate_rule = (i, x)` is the problem. You are using the same value (`x`, the last item in the list) each time. Change it to `enumerate_rule = (i, data[i])`.