title: How can I put and get a set of multiple items in a queue?
body: <p>Worker:</p>
  
  <pre><code>def worker():
      while True:
          fruit, colour = q.get()
          print 'A ' + fruit + ' is ' + colour
          q.task_done()
  </code></pre>
  
  <p>Putting items into queue:</p>
  
  <pre><code>fruit = 'banana'
  colour = 'yellow'
  q.put(fruit, colour)
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>&gt;&gt;&gt; A banana is yellow
  </code></pre>
  
  <p>How would I be able to achieve this? I tried it and got <code>ValueError: too many values to unpack</code>, only then I realized that my <code>q.put()</code> put both of the variables into the queue.</p>
  
  <p>Is there any way to put a "set" of variables/objects into one single queue item, like I tried to do?</p>