I'm starting in Python and I need to make make a code in Python that gives me all possible combinations between different dictionaries (every key only has 1 value), then be able to make calculations based on the different combinations, and then compare the results of the calculations. Let me give an exemple:
The different dictionaries: dict_0: {"A0": 1, "A1": 2} dict_1: {"B0": 2, "B1": 1}
Then make all the results "happen", how?: result0 : A0 and B0 result1: A0 and B1 result2: A1 and B0 result3: A1 and B1
Then I need to be able to make automatically calculations between the values of the keys integrated in the results, for exemple: averageResult0 = sum(result0)/2 averageResult0 = 1.5
averageResult3 = sum(result3)/2 averageResult3 = 1.5
Then, within all the automated calculted results, flag the calculations that have the same results; in this case averageResult0 & averageResult3. How can I code that? I've already did my researches but didn't find anything for this particular case.
In the real code, there will be way more dictionnaries and way more keys per dictionnary.
Thank you in advance, I hope my questions are clear :)