title: Automatically Unpack and Assign, Keys to Values from a Python Dictionary
body: <p>This question is similar to the one asked <a href="https://stackoverflow.com/questions/2955412/destructuring-bind-dictionary-contents">here</a>:</p>
  <p>However in my case I have a large dictionary filled with many keys and values, and I will not be able to enumerate each key to implement this solution:</p>
  <pre><code>from operator import itemgetter
  
  params = {'a': 1, 'b': 2}
  a, b = itemgetter('a', 'b')(params)
  </code></pre>
  <p>In my case:</p>
  <pre><code>from operator import itemgetter
  
  params = {'a': 1, 'b': 2 ........... 'y': 25, 'z': 26 }
  
  a, b ..... y, z = itemgetter('a', 'b'.... 'y', 'z')(params)
  </code></pre>
  <p>Is there any way I can unpack and assign each key to it's value, and associate values with variables names after its keys on a large scale?</p>
  <p>Please Advise.</p>
  <pre><code># Function
  a = 1
  b = 2
  
  def foo(z):
   return a + b + z
  
  foo(3)
  
  # should return 6
  </code></pre>