human
Write a function to extract the nth element from a given list of tuples. Here is a solution in Python:
=====
Can you provide a the Python program you requested?
assistant
#Here is the Python program you requested.
 def extract_nth_element(list1, n):
    result = [x[n] for x in list1]
    return result