Hi @henninghhh
The solution is simple. First use a for loop to take each tuple values. In the for loop you can use tuple unpacking to unpack the outer tuple. For tuple unpacking use (i, j) in the for loop. Then to take the first value of the two inner tuples use indexing in the two unpacked variables (i, j) to access it.
You can do this in a single line with list comprehension. To take the average use np. mean.
I think you have also asked about how to access the values in dictionary. The same concept I have explained above will work.
Access the 1st index of two inner tuples and convert it to tuple and you can access the dictionary like dict[(x, y)]. You can even do it in one line with list comprehension.