human
Python: filter list of list with another list
assistant
Here is some code to create a list `result` containing elements form list `list_a` if first element of list `list_a` is in list `list_b`

result = [x for x in list_a if x[0] in list_b]

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