Q:

split a string every character

# Python3 program to Split string into characters 
def split(word): 
    return [char for char in word]  
      
# Driver code 
word = 'geeks'
print(split(word)) 
1
# Python3 - separate each character of non-spaced string

def split(string): 
	return [letter for letter in string] 
	
# Driver code 
string = 'split this string'
print(split(string)) 
0

New to Communities?

Join the community