human
How to search a list of tuples in Python
assistant
Here is some code to get the indices of tuples in list of tuples `L` where the first value is 53

[i for i, v in enumerate(L) if v[0] == 53]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.