title: Create Variable Name When Defining A Function
body: <p>I am working in Python trying to write a function using a list of variables.
  Here is the data I am working with:</p>
  <pre><code>material_list=['leather', 'canvas', 'nylon']
  
  def materialz(MAT):
  
     MAT=support.loc[(material==MAT)].sum()
  
  for i in enumerate(material_list):
  
     materialz(i)
  </code></pre>
  <p>What I am looking for is to pass in each of the items in the list to the function to produce global variables.</p>
  <pre><code>leather=
  
  canvas=
  
  nylon=
  </code></pre>
  <p>Any help would be appreciated!</p>