I have a list of dictionaries as follows. a,b,c & d values are keys in each individual dictionaries with in the list
I = [{'a':'S1','b':'S2','c':'S3','d':'S4'},{'a':'S5','b':'S6','c':'S7','d':'S8'}]
Now I need to generate a new single dictionary. In that keys are 'a' value & 'b' value. Value for the dictionary is 'd' value. Sample output as follows. Key can be a tuple or a list.
O = {('S1','S2'):'S4',('S5','S6'):'S8'}
Can someone suggest me a method.