title: How to create new dictionaries from nested dictionary?
body: <p>I have a nested dictionary. How do I access them and get the result as follows:</p>
  <pre><code>dict_lbl = {
      &quot;lbl1&quot;:{&quot;name&quot;:&quot;label1&quot;,&quot;item1&quot;:&quot;Accounts&quot;,   &quot;item2&quot;:&quot;kannagu&quot;,    &quot;shortcut&quot;:&quot;F1&quot;,&quot;printitem&quot;:&quot;You clicked label1&quot;},
      &quot;lbl2&quot;:{&quot;name&quot;:&quot;label2&quot;,&quot;item1&quot;:&quot;Inventory&quot;,  &quot;item2&quot;:&quot;Saragu&quot;,     &quot;shortcut&quot;:&quot;F2&quot;,&quot;printitem&quot;:&quot;You clicked label2&quot;},
      &quot;lbl3&quot;:{&quot;name&quot;:&quot;label3&quot;,&quot;item1&quot;:&quot;Manufacture&quot;,&quot;item2&quot;:&quot;Thayarippu&quot;, &quot;shortcut&quot;:&quot;F3&quot;,&quot;printitem&quot;:&quot;You clicked label3&quot;},
      &quot;lbl4&quot;:{&quot;name&quot;:&quot;label4&quot;,&quot;item1&quot;:&quot;PayRoll&quot;,    &quot;item2&quot;:&quot;Sambalam&quot;,   &quot;shortcut&quot;:&quot;F4&quot;,&quot;printitem&quot;:&quot;You clicked label4&quot;}
       }
  </code></pre>
  <p><strong>Need Result as Follows:</strong></p>
  <pre><code>dict_name = {&quot;lbl1&quot;:&quot;label1&quot;,&quot;lbl2&quot;:&quot;label2&quot;,&quot;lbl3&quot;:&quot;label3&quot;,&quot;lbl4&quot;:&quot;label4&quot;}
  dict_item1 ={&quot;lbl1&quot;:&quot;Accounts&quot;,&quot;lbl2&quot;:&quot;Inventory&quot;,&quot;lbl3&quot;:&quot;Manufacture&quot;,&quot;lbl4&quot;:&quot;PayRoll&quot;}
  dict_item2 ={&quot;lbl1&quot;:&quot;kannagu&quot;,&quot;lbl2&quot;:&quot;saragu&quot;,&quot;lbl3&quot;:&quot;Thayaripu&quot;,&quot;lbl4&quot;:&quot;Sambalam&quot;}
  dict_shortcut ={&quot;lbl1&quot;:&quot;F1&quot;,&quot;lbl2&quot;:&quot;F2&quot;,&quot;lbl3&quot;:&quot;F3&quot;,&quot;lbl4&quot;:&quot;F4&quot;}
  dict_printitem = {&quot;lbl1&quot;:&quot;You clicked label1&quot;,&quot;lbl2&quot;:&quot;You clicked label1&quot;,&quot;lbl3&quot;:&quot;You clicked label1&quot;,&quot;lbl4&quot;:&quot;You clicked label1&quot;}
  </code></pre>