Join list to a string : list « Buildin Function « Python
- Python
- Buildin Function
- list
Join list to a string

S = 'spammy'
L = list(S)
print L
L[3] = 'x' # works for lists, not strings
L[4] = 'x'
print L
S = ''.join(L)
print S
Related examples in the same category