summaryrefslogtreecommitdiff
path: root/progs/a776.py
blob: 8a4206d8607b7b5939273bdf984875e283a4cb6e (plain)
1
2
3
def extract_nth_element(list1, n):
    result = [x[n] for x in list1]
    return result