title: Dictionary of lists to nested dictionary
body: <p>I have the following dictionary <code>{44: [0, 1, 0, 3, 6]}</code> and need to convert this to <code>dict1 = {44: {0:0, 1:1, 2:0, 3:3, 4:6}}</code> but my current for loop doesn't work:</p>
  
  <pre><code>maxnumbers = 5          #this is how many values are within the list
  for i in list(range(maxnumbers)):
      for k in list(dict1.keys()):
          for g in dict1[k]:
              newdict[i] = g
  print(num4)
  </code></pre>
  
  <p>Can you help me? Thanks in advance.</p>