I have a list, in which is another list and I want to doc.write(a)
doc.write(a)
a = [[1, 2, \"hello\"], [3, 5, \"hi There\"], [5,7,\"I don\'t know\"]]
You can also just use a simple list comprehension like this:
doc.write([x for x in i for i in a])