def split(word): return [char for char in word] # Driver code word = 'geeks' print(split(word)) #Output ['g', 'e', 'e', 'k', 's']
text= "I am Batman" splitted_text= text.split() Print(splitted_text)