title: Variable names with dictionaries?
body: <p>Python beginner here. A question about dictionaries.</p>
  
  <p>My input is a variable length list (eg a = ['eggs', 'ham', 'bacon'...] ) which functions as a list of search terms to be used on an imported CSV file.</p>
  
  <p>I have defined four functions that match each term to various values from said CSV file. So, each input term will result in four lists of results.</p>
  
  <p>I would like to store the input terms as a key in a dictionary (easy enough) and the resulting four lists as values (also easy enough).</p>
  
  <p>However, because the input list is of variable length I would like to set up a function to define and name the dictionaries 'term1', 'term2', illustrated very basically thus:</p>
  
  <pre><code>term1 = { 'eggs' : [[list1] , [list2] , [list3] , [list4]] }
  term2 = { 'ham' : [[list1] , [list2] , [list3] , [list4]] }
  term3 = { 'bacon' : [[list1] , [list2] , [list3] , [list4]] }
  </code></pre>
  
  <p>Is there a) a way to name dictionaries like this?; and b) AND have them be globally available? If so, how? Any and all help very much appreciated.</p>