convert string to array of characters python code example
Example 1: turn a string into a list of characters python
#Use the function list()
word = list(word)
Example 2: python string to char array
>>> s = "foobar"
>>> list(s)
['f', 'o', 'o', 'b', 'a', 'r']