Change string to a list : list « Buildin Function « Python






Change string to a list

Change string to a list
S = 'spammy'
L = list(S)
print L


           
       








Related examples in the same category

1.Change string to a list and Reference its index Change string to a list and Reference its index
2.Join list to a stringJoin list to a string
3.Convert string to a list and add them togetherConvert string to a list and add them together