title: How to insert python lists in HTML table?
body: <p>I have the following output list from python list. </p>
  
  <p><code>['N3132-a', '172.20.138.18', '192.168.193.15/24', 'N3132-a.td.com ', 'N3K-C3132Q-40GX', 'FOC2116XCFV', 'NXOS: version 7.0(3)I4(6)']</code></p>
  
  <p><code>['N56k-a', '10.249.98.11', '192.168.173.16/24', 'N56k-a.td.com ', 'N5K-C56128P', 'FOC2187FGHJ', 'kickstart: version 7.1(4)N1(1)']</code></p>
  
  <p><code>['N3164-b', '172.16.48.14', '192.168.130.12/24', 'N3164-b.td.com ', 'N3K-C3164Q-40GE', 'FDO26HJKL2', 'NXOS: version 7.0(3)I4(6)']</code></p>
  
  <p><code>['5596-a', '10.250.98.20', '192.168.170.25/24', '5596-a.td.com ', 'N5K-C5596UP', 'FOX2398HGF', 'kickstart: version 7.1(4)N1(1)']</code></p>
  
  <p><code>['N3064-B', '172.17.47.20', '192.168.130.25/24', 'N3064-B.td.com ', 'N3K-C3064PQ-10GX', 'FOC193FGHJNM', 'NXOS: version 7.0(3)I4(6)']</code></p>
  
  <p>I need to loop this data in html and print this in html table .</p>
  
  <p>I have the following html code which works but creating each table instead of one table</p>
  
  <p>Manual input work like this </p>
  
  <pre><code>&lt;HTML&gt;
  &lt;head&gt;
  &lt;title&gt;Data&lt;/title&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;h1&gt;&lt;marquee&gt;Welcome To The Page&lt;/marquee&gt;&lt;/h1&gt;
      &lt;h1&gt;Data :&lt;/h1&gt;
  
      &lt;table  border="4" align="center"&gt;
  
  
       &lt;th style="background-color:yellow !important;"&gt;&lt;h2&gt;&lt;br&gt;dc&lt;/h2&gt;&lt;/th&gt;
       &lt;th style="background-color:yellow !important;"&gt;&lt;h2&gt;&lt;br&gt;proxi&lt;/h2&gt;&lt;/th&gt;
       &lt;th style="background-color:yellow!important;"&gt;&lt;h2&gt;&lt;br&gt;id&lt;/h2&gt;&lt;/th&gt;
       &lt;th style="background-color:yellow !important;"&gt;&lt;h2&gt;&lt;br&gt;email&lt;/h2&gt;&lt;/th&gt;
       &lt;th style="background-color:yellow!important;"&gt;&lt;h2&gt;&lt;br&gt;face-1&lt;/h2&gt;&lt;/th&gt;
       &lt;th style="background-color:yellow!important;"&gt;&lt;h2&gt;&lt;br&gt;face-2&lt;/h2&gt;&lt;/th&gt;
       &lt;th style="background-color:yellow!important;"&gt;&lt;h2&gt;&lt;br&gt;face-3&lt;/h2&gt;&lt;/th&gt;
       &lt;tr&gt;&lt;td&gt;N3132-a&lt;/td&gt;&lt;td&gt;172.16.139.15&lt;/td&gt;&lt;td&gt;192.168.195.15/24&lt;/td&gt;&lt;td&gt;N3132-a.td.com &lt;/td&gt;&lt;td&gt;N3K-C3132Q-40GX&lt;/td&gt;&lt;td&gt;FOC2116&lt;/td&gt;&lt;td&gt;NXOS: version 7.0(3)I4(6)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;N56k-a&lt;/td&gt;&lt;td&gt;10.249.99.11&lt;/td&gt;&lt;td&gt;192.168.175.11/24&lt;/td&gt;&lt;td&gt;N56k-a.td.com &lt;/td&gt;&lt;td&gt;N5K-C56128P&lt;/td&gt;&lt;td&gt;FOC2109L&lt;/td&gt;&lt;td&gt;kickstart: version 7.1(4)N1(1)&lt;/td&gt;&lt;/tr&gt;
  
  &lt;/table&gt;
  &lt;/body&gt;
  &lt;/HTML&gt;
  </code></pre>
  
  <p>need to loop that input data in python and print that html file instead of manual data in html table.</p>