If I have, for example, a list of tuples such as
a = [(1,2)] * 4
how would I create a list of the first element of each tuple? That is,
a = [(1,2)] * 4 first_els = [x[0] for x in a]