I am a beginner in Python and have the following problem:
I have two loops, that produce two dictionaries that look like this (of course, much longer):
dict1 = {'Manubar': ['string', 'string2', 'string3', 222, 23, 45], 'Schorsch': ['string', 'string2', 'string3', 122, 65, 44]}
dict2 = {'Manubar': ['string', 'string2', 543, 21, 34], 'Schorsch': ['string', 'string2', 354, 10, 65]}
I would now like to sum / multiply the last digits of the same key in dict1 and dict2 and create an new dict that should look like this:
dict3 = {'Manubar': ['string', 'string2', 'string3', 222, 23, **79** ], 'Schorsch': ['string', 'string2', 'string3', 122, 65, **109**]}
I tried to merge the two dicts, but that simply overwrites the values. How do I get to sum the last digits and then put them in a new dict?