I have a wonderful sheet of tuples (in principle, I can redo it on a sheet of sheets, on a dictionary of sheets and in general on anything. It doesn’t matter):
lst = [(['her1'], [lol1]), (['her2'], [lol2, 123, lol4]), (['her3'], [lol3324, 555])] Here it both str and int comes across ...
And there is a variable with html with which I want to make a table:
html = """<html> <body> <br></br> <FONT size=4><B>Hello!</B></FONT> <br></br> <table border=1> <tr> <td> <B>ROW1</B> </td> <td> <B>ROW2</B> </td> </tr> <tr> <td>ololo</td> <td>tralala</td> </tr> </table> <BR /> <FONT size=4><B> Bye! </B></FONT> <BR> </B> </FONT> <BR /> </body> </html>""" I need instead of these ololo and tralala insert her and lol respectively. That is, you have to do something like this:
html = """<html> <body> <br></br> <FONT size=4><B>Hello!</B></FONT> <br></br> <table border=1> <tr> <td><B>ROW1</B></td> <td><B>ROW2</B></td> </tr> <tr> <td>her1</td> <td>lol1</td> </tr> <tr> <td>her2</td> <td>lol2</td> </tr> <tr> <td>her3</td> <td>lol3, lol324, lol2131</td> </tr> </table> <BR /> <FONT size=4><B> Bye! </B></FONT><BR> </B></FONT><BR /> </body> </html>""" Here's how to do this with python? PS In the list, of course, a thousand times more than her and lol, if this is important ...