python split string by character and some words code example
Example: how to split a word into letters in python
def split(word):
return [char for char in word]
word = "word"
print(split(word))
#output: ["w", "o", "r", "d"]
def split(word):
return [char for char in word]
word = "word"
print(split(word))
#output: ["w", "o", "r", "d"]