title: Print values of array of arrays in flask
body: <p>I have this array of arrays:</p>
  
  <pre><code>[['Frutta', 
  ['M01', '2018-08-06 08:35:00', '2018-08-06 10:13:00'], ['M02', 
  '2018-08-06 10:18:00', '2018-08-06 11:42:00'], ['M04', '2018-08-06 15:19:00', 
  '2018-08-06 16:37:00']], 
  
  ['verdura', 
  ['M01', '2018-08-06 08:35:00', '2018-08-06 10:25:00']]]
  </code></pre>
  
  <p>and I want to print each field</p>
  
  <p>so, with flask I tried like this: </p>
  
  <pre><code>{% for prodotto in range(inserisci_ordine[1]| length) %}
  {{ inserisci_ordine[prodotto][0] }}&lt;br&gt;
  {% for macchine in range(inserisci_ordine[prodotto]| length) %}
  {{ inserisci_ordine[prodotto][macchine] }}&lt;br&gt;
  {{ inserisci_ordine[prodotto][macchine][2] }}&lt;br&gt;
  {% endfor %}
  {% endfor %}
  </code></pre>
  
  <p>I would like to print something like this:</p>
  
  <p><code>frutta</code></p>
  
  <ul>
  <li><code>M01, 2018-08-06 08:35:00, 2018-08-06 10:13:00</code></li>
  <li><code>M02, 2018-08-06 10:18:00, 2018-08-06 11:42:00</code></li>
  <li><code>M04, 2018-08-06 15:19:00, 2018-08-06 16:37:00</code></li>
  </ul>
  
  <p><code>verdura</code></p>
  
  <ul>
  <li><code>M01, 2018-08-06 08:35:00, 2018-08-06 10:25:00</code></li>
  </ul>
  
  <p>But I can't figure it out..</p>
  
  <hr>
  
  <p>EDIT.</p>
  
  <p>Is it possible in some way, print also the machine utilized in the previous cycle? for example:</p>
  
  <p><code>frutta</code></p>
  
  <ul>
  <li><code>M01, 2018-08-06 08:35:00, 2018-08-06 10:13:00</code> #I want to print here <code>, NULL</code></li>
  <li><code>M02, 2018-08-06 10:18:00, 2018-08-06 11:42:00</code> #Here the <code>, M01</code></li>
  <li><code>M04, 2018-08-06 15:19:00, 2018-08-06 16:37:00</code> #here the <code>, M02</code></li>
  </ul>
  
  <p><code>verdura</code></p>
  
  <ul>
  <li><code>M01, 2018-08-06 08:35:00, 2018-08-06 10:25:00</code> #here <code>, NULL</code></li>
  </ul>