Guys,
I have dictionary and would like to produce html page where will be drawn simple html table with keys and values. How it can be done from python code?
Guys,
I have dictionary and would like to produce html page where will be drawn simple html table with keys and values. How it can be done from python code?
output = "<html><body><table>"
for key in your_dict:
output += "<tr><td>%s</td><td>%s</td></tr>" % (key, your_dict[key])
output += "</table></body></html>
print output