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


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

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

3

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