title: Can't print the proper values of Python dictionary in HTML
body: <p>I'm trying to parse a Python dictionary into HTML and display it as a table.
  I have an SQL database that I draw data from using Python, then parse it into my page like so:</p>
  
  <pre><code>tusername = query_db("SELECT t_username FROM teacher")    
  return render_template('teachers.html.',username=tusername)
  </code></pre>
  
  <p>I found this piece of code here, which prints the data:</p>
  
  <pre><code>&lt;table&gt;
      {% for t in table %}
          &lt;tr&gt;
          {% for i in t %}
              &lt;td&gt;{{ i }}&lt;/td&gt;
          {% endfor %}
      &lt;/tr&gt;
      {% endfor %}
  &lt;/table&gt;
  </code></pre>
  
  <p>This is what it prints:</p>
  
  <pre><code>t_username
  t_username
  t_username
  t_username
  t_username
  </code></pre>
  
  <p>This is my data: </p>
  
  <pre><code>[{'t_username': '1'}, {'t_username': 'admin'}, {'t_username': 'dfsdsfdf'}, {'t_username': 'NewGuy'}, {'t_username': 'test'}]
  </code></pre>
  
  <p>I want it to print the proper names rather than <code>"t_username"</code>. I've not been able to find a solution and I've only just begun working with Python, so I'm not very familiar with it. Anyone able to help?</p>