title: Python convert nested loop to list comprehension
body: <p>I have multi level list of dictionary from which I need to make two required list. Currently I can do it this way but wanted to make fully list comprehension way,</p>
  <pre><code>poi = [] 
  nh = [] 
  tr_poi_nh = response.xpath('string(//body)').re(r'window\.__WEB_CONTEXT__=(.*?);\(this')[0]
  
  tr_poi_nh = json.loads(tr_poi_nh.replace(&quot;pageManifest&quot;, '&quot;pageManifest&quot;'))
  
  for entry in tr_poi_nh['pageManifest']['hydrations']:   
      if entry['package'] == 'e374ol':       
          for value in entry['props']['initialAvailableFilters']:         
              if value['paramName'] =='distFrom':     
                  poi = [x['normalized_name']  for x in value['poiSet']]   
              if value['paramName'] == 'zfn':                         
                  nh = [y['label']  for y in value['choices']]
  
  print(poi,nh)
      
  </code></pre>