split string letter by letter python code example
Example 1: turn a string into a list of characters python
#Use the function list()
word = list(word)
Example 2: python split string in characters
s = "foobar"
list(s)
['f', 'o', 'o', 'b', 'a', 'r']
Example 3: python split string on char
>>> "MATCHES__STRING".split("__")
['MATCHES', 'STRING']