title: How to get the first element of an array Python, from HTML
body: <p>I have an array called list, for example</p>
  
  <p><code>list = [0,1,2,3]</code></p>
  
  <p>in the HTML when i do this</p>
  
  <pre><code>&lt;body&gt;
  {{ list }}
  &lt;/body&gt;
  </code></pre>
  
  <p>the output will be <code>[0,1,2]</code></p>
  
  <p>what i want is</p>
  
  <pre><code>{{ list[0] }}
  </code></pre>
  
  <p>but this statement is giving me error, how i can just print the first element</p>