title: create a dict for items of two list once co occur in the same line in a file text
body: <p>If there are two lists of items, and the task is to create a dict of the items of the two lists (one items from list1 as key and one from list2 as value) once the two items co-occure in the same line of file text. Is there another way different from my following trial? Thanks</p>
  
  <pre><code>di =  {}
  for line in file_text:
      for x in list1:
          for y in list2:
              if x in line and y in line:
                  di[x]=y   
  </code></pre>