Contact: aviboots(AT)netvision.net.il
31,152 questions
40,706 answers
573 users
def getCharList(s): return [ch for ch in s] s = 'python' print(getCharList(s)) ''' run: ['p', 'y', 't', 'h', 'o', 'n'] '''
s = 'python' lst = list(s) print(lst) ''' run: ['p', 'y', 't', 'h', 'o', 'n'] '''