how to detect next number of given tuple 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