Human: How to extract the n-th elements from a list of tuples in python? Assistant: 
Here is some code to extract the 2nd elements from a list of tuples

[x[1] for x in elements]

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