title: Python / Django - Get List Value With Index From Object Variable Value
body: <p>I have a list that is passed into a template.  I want to access a value with a specific index.  Problem is the list is accessed with dot notation in the template...</p>
  
  <p>For example:</p>
  
  <pre><code>object = { id: 1 }
  list = [ "zero", "one" ]
  print list[ object.id ] ## one
  </code></pre>
  
  <p>Once the list is in the template you access values by index with dot notation.</p>
  
  <pre><code>list.1 ## one
  list[ object.id ] ## this doesn't work
  list.object.id ## this doesn't work obv.
  </code></pre>
  
  <p>How can I access the value "one" with the index of "1"?</p>
  
  <p>Thanks in advance!</p>