Check indexes against lists with indexes
<p>If I have a list of lists in Python, and I make lists from parts of that list of lists, how could I check which list an index were in. </p>

<p>For example:</p>

<pre><code>LOL = [
    [4, 5, 6],
    [7, 1, 8],
    [6, 2, 9]
    ]
list1 = [LOL[0][0], LOL[0][1], LOL[1][1]]
list2 = [LOL[2][2], LOL[2][1], LOL[1][2]]
list3 = [LOL[2][0], LOL[1][2], LOL[0][2]]
</code></pre>

<p>(These indices are completely intentional.) The 1 in this list of lists (LOL) is at index <code>LOL[1][1]</code> (1,1). How would I check which out of the three lists: list1, list2, and/or list3, it is in?  </p>

<pre><code>if 1 in row for row in LOL:
    (search the list that the 1 is in for 6. The integers contained in the lists in LOL are just examples, there could be multiple 1's in the lists in LOL.)
</code></pre>

<p>If there was actual Python Syntax inside the parenthesis that would accomplish the described task, list1 would be searched and because there aren't any 6's in that list the if statement would fall through. How would I fill in the part in parenthesis so that it had the correct Python syntax to accomplish the task described there?</p>
