title: Changing list as values in dict into normal value in dict
body: <p>I have a dictionary with values in list. But I want to change them from <code>list</code> to a normal <code>dict</code> value.
  So it's looking like this:</p>
  <pre><code>{1: {'A': { 1: [5], 16: [5], 17: [4],
             20: [9], 22: [5], 26: [4],
             33: [2], 34: [4], 42: [2],
             47: [4], 72: [4], 80: [2]}}}
  </code></pre>
  <p>And this is the expected output: (removing the square brackets)</p>
  <pre><code>{1: {'A': { 1: 5, 16: 5, 17: 4,
             20: 9, 22: 5, 26: 4,
             33: 2, 34: 4, 42: 2,
             47: 4, 72: 4, 80: 2}}}
  </code></pre>
  <p>These are like extracts from my actual data, which roughly looks like this. So there's a set of these data in each of the <code>dict</code>s (which is like 3*3=9 in total)</p>
  <pre><code>{1: {&quot;A&quot;: {}, &quot;B&quot;: {}, &quot;C&quot;:{}},
   2: {&quot;A&quot;: {}, &quot;B&quot;: {}, &quot;C&quot;:{}},
   3: {&quot;A&quot;: {}, &quot;B&quot;: {}, &quot;C&quot;:{}}}
  </code></pre>
  <p>I see a lot other questions turning a <code>list</code> into a value in <code>dict</code>. But I'm trying to do the opposite (changing my values to normal values instead of being in a <code>list</code>)</p>
  <p>Would be great if you've seen other threads with similar problems and can direct me to them.</p>