I have a preexisting function that parses the data of an html table .
def parse_table(lines):
.......
I'd like to be able to reuse this function, but in order to do so I have to provide the 'lines' variable which is the format of multi line text string that looks like:
a
b
c
d
e
f
.....
where all letters are text strings.
So far I have been able to parse the table into a list of lists ( which each list representing a row ) that looks like:
[[u'a',u'b',u'c'],[u'd',u'e',u'f'],...]
How can I turn my list of lists into the needed format?