1sentence = 'Hello world a b c'
2split_sentence = sentence.split(' ')
3print(split_sentence)
1
2# Python3 program to Split string into characters
3def split(word):
4 return [char for char in word]
5
6# Driver code
7word = 'geeks'
8print(split(word))
9
1# Python3 - separate each character of non-spaced string
2
3def split(string):
4 return [letter for letter in string]
5
6# Driver code
7string = 'split this string'
8print(split(string))
9