I have a list of tuples (always pairs) like this:
[(0, 1), (2, 3), (5, 7), (2, 1)]
I\'d like to find the sum of the first items in each pai
s,p=0,0 for i in l: s=s+i[0] p=p+i[1] print(tuple(s,p))