Question : split a string every character
Answered by : tame-turkey-ie3pxoh9oocw
# 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))
Source : | Last Update : Tue, 24 Nov 20