split each charecter of string pythn 3 code example
Example: how to split a string by character in python
def split(word):
return [char for char in word]
# Driver code
word = 'geeks'
print(split(word))
#Output ['g', 'e', 'e', 'k', 's']