How to merge a list of lists?
[['A', 'B', 'C'], ['D', 'E', 'F'], ['G', 'H', 'I']]
at
['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I']
Even better, if I can add a value at the beginning and end of each element before merging lists, for example with html tags.
ie, the end result is:
['<tr>A</tr>', '<tr>B</tr>', '<tr>C</tr>', '<tr>D</tr>', '<tr>E</tr>', '<tr>F</tr>', '<tr>G</tr>', '<tr>H</tr>', '<tr>I</tr>']
source
share