Find the index of a tuple in a list of tuples in Python
You're looking for the list.index function:
&gt;&gt;&gt; array = [(1, 2), (1, 7), (1, 5), (2, 5), (2, 7), (2, 9), (3, 4), (3, 5), (4, 5), (4, 7), (5, 8), (6, 7), (8, 9)]
&gt;&gt;&gt; array.index((6, 7))
11