txt = "foobar" print(list(txt)) # ["f", "o", "o", "b", "a", "r"]
def split(word): return [char for char in word]
>>> s = "foobar" >>> list(s) ['f', 'o', 'o', 'b', 'a', 'r']