I already had this problem several times that I could not find a good solution to add the contents of two tuples together. Something that does:
a = (1, 2)
b = (3, 4)
c = (a[0]+b[0], a[1]+b[1])
I think I saw the syntax to do this only once, but I don’t remember how to do it.
source
share