python string to list of letters

Solutions on MaxInterview for python string to list of letters by the best coders in the world

showing results for - "python string to list of letters"
Henri
14 Jan 2017
1# Python3 program to Split string into characters
2def split(word):
3    return list(word)
4     
5# Driver code
6word = 'geeks'
7print(split(word))
8
9#Output
10['g', 'e', 'e', 'k', 's']