dict.items() in python dictionary return type
<p>I have the following code to print items from a dictionary.</p>

<pre><code>   my_dict = {
              "apples": 430,
              "bananas": 312,
              "oranges": 525,
              "pears": 217,
              "strawberries": 267,
              "blueberry": 179,
              "boysenberry": 432,
              "blackberry": 266,
              "apricot": 321,
              "plum": 143,
              "peaches": 154
            }

for k, v in my_dict.items():
    print('key {} value {}\n'.format(k, v))
</code></pre>

<p>The above code works fine and prints the key and the values. Just out of curiosity I wanted to try</p>

<pre><code>k,v = my_dict.items()
</code></pre>

<p>it gives me an error.I want to know why this is ? My understanding is that <code>my_dict.items()</code> returns <code>k and v</code></p>