title: How to extract dictionary single key-value pair in variables
body: <p>I have only a single key-value pair in a dictionary. I want to assign key to one variable
  and it's value to another variable. I have tried with below ways but I am getting error for same.</p>
  
  <pre><code>&gt;&gt;&gt; d = {"a": 1}
  
  &gt;&gt;&gt; d.items()
  [('a', 1)]
  
  &gt;&gt;&gt; (k, v) = d.items()
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ValueError: need more than 1 value to unpack
  
  &gt;&gt;&gt; (k, v) = list(d.items())
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ValueError: need more than 1 value to unpack
  </code></pre>
  
  <p>I know that we can extract key and value one by one, or by for loop and <code>iteritems()</code>, but isn't there a simple way such that we can assign both in a single statement? </p>