For example I have a list of:
[[1,1,1], [1,1,0], [1,0,1], [1,0,1], [1,1,1], [1,1,0], [1,0,1], [1,0,1], [1,0,1], [1,1,0]]
I want it to be:
[[1,1,1,1,1,0], [1,0,1,1,0,1], [1,1,1,1,1,0], [1,0,1,1,0,1], [1,0,1,1,1,0]]
If you don't get it here is another example:
[a, b, c, d, e, f, g, h, i, j]
[ab, cd, ef, gh, ij]
What I have tried:
list = [[1, 1, 1], [1, 1, 0], [1, 0, 1], [1, 0, 1], [1, 1, 1], [1, 1, 0], [1, 0, 1], [1, 0, 1], [1, 0, 1], [1, 1, 0]]
newlist = []
for i in range(int(len(list)/2)):
newlist = (''.join(list for n in range(2)))
print(newlist)