I have Python list like the following
[[1, 'sarmad ali', 10], [2, 'nabeel', 200], [3, ' tayyab', 40202]]
I want to show them in a table/two dimensional style in template(html page) the following
1 sarmad ali 10
2 nabeel 200
3 tayyab 40202
I am able to got the following
1 sarmad ali 10 2 nabeel 200 3 tayyab 40202
In my python file I have data in the form of Dataframe, and converted to list.
{% for col in data_list%}
{% for row in col%}
<td>{{row}}</td>
{% endfor %}
<br>
{% endfor %}
The above nested loop is producing the output in single line instead of table format. I figured out that second loop is iterating all the lists in single line instead of iterating single list at a time
Feel free to ask any question for more clarification.