human
What's the fastest way to locate a list element within a list in python?
assistant
Here is some code to find the index of a list with the first element equal to '332' within the list of lists `thelist`

[index for index, item in enumerate(thelist) if item[0] == '332']

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