title: How to get the keys if one of key is or '0' in dictionary
body: <p>I have Dictionary is below, My product output is below. I need to create a new dictionary with two types <code>Out_1</code>, <code>Out_2</code></p>
  
  <pre><code>product = {'Product1': {'index': '1', '1': 'Book', '2': 'Pencil', '3': 'Pen','value': '1'}, 
   'Product2': {'index': '2', '1': 'Marker', '2': 'MYSQL', '3': 'Scale','value': '0'}}
  </code></pre>
  
  <p>If value inside product is <code>0</code> then extract the keys</p>
  
  <p>Expected Output</p>
  
  <pre><code>Out_1 = {'Product2': {1:'Marker': '2': 'Compass', '3': 'Scale', 'value': 0}}
  Out_2 = {'Product2':['Marker','Compass','Scale', '0']}
  </code></pre>
  
  <p>Psuedo code is below. i tried to create but not able to create as above</p>
  
  <pre><code>Out_1 = {}
  Out_2 = {i:[]}
  for i,j in product.items():
    for a,b in j.items():
      if a['value'] == 0:
         Out_2.append(i)
  </code></pre>
  
  <p>I am getting indices error, How to get <code>Out_1</code>, <code>Out_2</code></p>