title: Converting dictionary into list of nested dictionary
body: <p>I have a list of the dictionary and other list <code>List_1=[D1,D2,D3]</code>. My list of dictionary  test_dict is like:`</p>
  
  <pre><code>[{"D1": 1.0,"D2": 0},{"D4":1.2,"D2":1.4}]
  </code></pre>
  
  <p>What I want in my final_dict is:</p>
  
  <pre><code>[{"List_1":D1,"value":1.0,"List_1":D2,"value":0},{"Default":D4,"value":1.2,"List_1":D2,"value":1.4}]
  </code></pre>
  
  <p>In test_dict at index zero i have a dictionary having D1 and D2 as key and 1.0 and 0 are there values.But in my final_dict. I want to change my key value pair.
  My final goal is to insert it into mongodb <a href="https://stackoverflow.com/questions/55052488/dictionary-inside-dictionary-insertion-in-mongodb">link</a></p>