title: Django array or list output?
body: <p>I'm pulling a set of image urls and their respective titles.  I've tried creating a hash or associative array, but the data seems to overwrite so I only end up with the last item in the array.</p>
  
  <p>For example;</p>
  
  <pre><code>thumbnail_list = []
  for file in media:
      thumbnail_list['url'] = file.url
      thumbnail_list['title'] = file.title
  </code></pre>
  
  <p>I've even tried creating two lists and putting them in a larger one.</p>
  
  <pre><code>thumbnail_list.append('foo')
  thumbnail_urls.append('bar')
  all_thumbs = [thumbnail_list], [thumbnail_urls]
  </code></pre>
  
  <p>I'm trying to create a link out of this data:</p>
  
  <pre><code>&lt;a href="image-url"&gt;image title&lt;/a&gt;
  </code></pre>
  
  <p>I keep getting close, but I end up looping over too much data or all of the data at once in my django template.</p>
  
  <p>Ideas?</p>
  
  <p>Edit: Maybe zip() is what I need?</p>
  
  <pre><code>questions = ['name', 'quest', 'favorite color']
  answers = ['lancelot', 'the holy grail', 'blue']
  for q, a in zip(questions, answers):
      print 'What is your {0}?  It is {1}.'.format(q, a)
  </code></pre>