[Solved] Adding spaces within the (string) elements of an array [closed]

[ad_1]

Convert each string into a list, then chain the lists:

from itertools import chain
list(chain.from_iterable(map(list, character)))
#['#', '$', '@', '#', '%', '%', '#', '@', '#', '%']

3

[ad_2]

solved Adding spaces within the (string) elements of an array [closed]