I have two separate dictionaries with keys and values that I would like to multiply together. The values should be multiplied just by the keys that they have.
i.e.
From my telephone, so bit hard to type code. This should do the trick:
for key, value in dict1.iteritems(): if key in dict2: dict3[key] = int(dict1[key]) * int(dict2[key])