Mega Code Archive

 
Categories / Python Tutorial / List
 

Uses a string as the sequence to create a list of characters in the string

word = "Python" list = [] for ch in word:     list.append(ch) print list