1def split(word):
2 return [char for char in word]
3
4word = "word"
5print(split(word))
6#output: ["w", "o", "r", "d"]
7
1def split(word):
2 return [char for char in word]
3
4# Driver code
5word = 'geeks'
6print(split(word))
7
8#Output ['g', 'e', 'e', 'k', 's']