I got a list of list like:
t0 = [['a', 'b', 'c'], ['d', 'e', 'f'], ['h', 'i', 'j', 'k']]
And I need the output to be:
t1 = ['a', 'b', 'c', 'd', 'e', 'f', 'h', 'i', 'j', 'k']
I know I can do that by writing an ugly loop like:
t1 = []
for item in t0:
t1.extend(item)
Is there any better/elegant way to achieve that?