Python String zu char Array
>>> s = "foobar"
>>> list(s)
['f', 'o', 'o', 'b', 'a', 'r']
Sleepy Sardine
>>> s = "foobar"
>>> list(s)
['f', 'o', 'o', 'b', 'a', 'r']
def split(word):
return [char for char in word]
# Driver code
word = 'geeks'
print(split(word))
#Output ['g', 'e', 'e', 'k', 's']