Hmm... well, the simple way that comes to mind is to convert it to a dict
d = dict(thelist)
and access d[53]
.
EDIT: Oops, misread your question the first time. It sounds like you actually want to get the index where a given number is stored. In that case, try
dict((t[0], i) for i, t in enumerate(thelist))
instead of a plain old dict
conversion. Then d[53]
would be 2.