Question: My function is given a 'to\_find\_value' then I have 2 lists which are the same in length and index values. Once I find the index value in list 1 that 'to\_find\_value' is in, I want to take that index of list 2 and return the value found at list 2. 

Ex: 

```
function_name('tree', ['bush', 'tree', 'shrub'], ['red', 'green', 'yellow'])
'green'

```

So in the above function I was given tree, and I found it at index 1 in list 1 so then I go to index 1 in list 2 and return the value at that index

This is what I have started so far but I am unsure how to format an 'unknown' index:

```
for plant in plant_data:  
    if plant in list1:  
    list1[?] == list2[?]  
return list2[?}  

```

\*The '?' represents the part I'm unsure about

Answer: 
Something like:

```
def f(a,b,c):
    return c[b.index(a)]

```

Then call it like:

```
print(f('tree', ['bush', 'tree', 'shrub'], ['red', 'green', 'yellow']))

```

Output is:

```
green

```
You can use the built-in `enumerate` function to keep track of the index and the item at the same time:

```
for idx, plant in enumerate(plant_data):
    if plant in list1:
        list1[idx] = list2[idx]

```