get list of values from tuples code example
Example 1: how to search tuple values in a list in python
test = [("hi", 1), ("there", 2)]
test = dict(test)
print test["hi"] # prints 1
Example 2: python second element of every tuple in list
n = 2 # N. . .
[x[n] for x in elements]