title: How to render a list of lists to HTML with Jinja2
body: <p>I'm trying to collect some soccer game data to a single table by python3, jinja2 to a stylized HTML template page. I'm just beginner in programming and I may have made some mistake on transferring the data.</p>
  
  <p>I tried to print the result out it seems ok like</p>
  
  <pre><code>mylist=[[['2019-04-27', '03:00'], ['liverpool', 'liverpool', 'EP', 'tag'], ['live']],
  [['2019-04-27', '10:00'], ['GSW', 'LAC', 'NBA', 'tags', 'tags'], ['live1', 'live2']],
  [['2019-04-27', '19:30'], ['hotspurs', 'WH', 'EP'], ['live']]]
  </code></pre>
  
  <p>but when I try to render HTML with jinja2, like
      <code>print(template.render(mylist))</code>
  it shows</p>
  
  <pre><code>Traceback (most recent call last):
    File "Z:/学习/pythonLearning/zhibo8_v4.py", line 57, in &lt;module&gt;
      print(template.render(showListReady))
    File "C:\Program Files\Python37\lib\site-packages\jinja2\asyncsupport.py", line 76, in render
      return original_render(self, *args, **kwargs)
    File "C:\Program Files\Python37\lib\site-packages\jinja2\environment.py", line 1003, in render
      vars = dict(*args, **kwargs)
  ValueError: dictionary update sequence element #0 has length 3; 2 is required
  </code></pre>
  
  <p>I think it could be something wrong in my HTML template, like</p>
  
  <pre><code>        &lt;tbody&gt;
          {% for game in showListReady %}
          {% for date, time, teamA, teamB, tags, broadcast in game %}
          &lt;tr&gt;
              &lt;td class="firstColumn"&gt;
                  &lt;div class="dateClass"&gt;${date}&lt;/div&gt;
                  &lt;div class="timeClass"&gt;${time}&lt;/div&gt;
              &lt;/td&gt;
              &lt;td class="secondColumn"&gt;
                  &lt;span class="teamName"&gt;${teamA}&lt;/span&gt;
                  &lt;span&gt;&lt;img src="images/xxxx.png"&gt;&lt;/span&gt;
                  &lt;span class="VS"&gt;VS&lt;/span&gt;
                  &lt;span&gt;&lt;img src="images/xxxx.png"&gt;&lt;/span&gt;
                  &lt;span class="teamName"&gt;${teamB}&lt;/span&gt;
                  &lt;span class="leagueName"&gt;${tags}&lt;/span&gt;
              &lt;/td&gt;
              &lt;td class="thirdColumn"&gt;
                  &lt;span class="broadcast"&gt;${broadcast}&lt;/span&gt;
                &lt;/td&gt;
          &lt;/tr&gt;
          {% endfor %}
          {% endfor %}
  </code></pre>
  
  <p>hope someone could give me some advice, please</p>