split string all characters python code example
Example 1: python split every character in string
def split(word):
return [char for char in word]
Example 2: python split string on char
>>> "MATCHES__STRING".split("__")
['MATCHES', 'STRING']