how to seperate word to letter in python 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"]