l = ["Youtube", "Instagram", "Facebook"]
a = [
[
"{} {}".format(i[2 * j : 2 * j + 1], i[2 * j + 1 : 2 * j + 2])
for j in range(len(i) // 2)
]
for i in l
]
print(a)
This will return
[['Y o', 'u t', 'u b'], ['I n', 's t', 'a g', 'r a'], ['F a', 'c e', 'b o', 'o k']]
How the above list I can join first character space with the second character, Please tell if i missing anything in the inner array List.
Below is the output I want the odd space with even character
[['Yuu otb'], ['Isar ntga'], ['Fcbo aeok']]