python split word into letters list 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"]