S = 'spammy'L = list(S)print LL[3] = 'x' # works for lists, not stringsL[4] = 'x'print LS = ''.join(L)print S