I have an array that looks roughly like this:
[ (0.5, 0.6, 0.7), (0.1, 0.9, 0.8), (0.9, 1.0, 0.4),
...
(0.3, 0.8, 0.3), (0.2, 0.4, 0.9), (0.5, 0.5, 0.3) ]
What I need is a sum of [0][0], [0][1], [0][2], etc. as well as [1][0], [1][1], [1][2], etc. I need a way to get a sum of the first index of all items in the array, then a sum of the second index of all items in the array, etc.
How can I do this in Python? The ultimate result would be to have a single tuple that contained the average of each index of all of the tuples.
This assumes all tuples have has many elements as your first tuple