find in tuple list python code example
Example: how to search tuple values in a list in python
test = [("hi", 1), ("there", 2)]
test = dict(test)
print test["hi"] # prints 1
test = [("hi", 1), ("there", 2)]
test = dict(test)
print test["hi"] # prints 1