I have two dictionaries. I would like to request your kind help to solve the following issue:
- The first one has 339 keys-values pairs. The values may have a random lenght from cero to 10.
- The secong one has 215 keys-values pairs. In the same case, the values have a random lenght.
The values of the first dictionary are one or more of the keys from the second. Sometinhg like that:
- dict1=[REQ-1:{value-1, value-2}, REQ-2:{}, REQ-3:{value-3, value-6, value-10},...]
- dict2=[value-1:{pcr-1,pcr-8}, value-2:{pcr-2,pcr-3,pcr-4},....]
How can I nest the values of the second into the values of the first one?:
dict3=[
REQ-1:{value-1:{pcr-1,pcr-8},value-2:{pcr-2,pcr-3,pcr-4}},
REQ-2:{},
REQ-3:{value-3:{...},value-6:{...},value-10:{...}}
,...]
Thank you so much in advance