variable de cadena editar python

text = 'abcdefg'
new = list(text)
new[6] = 'W'
''.join(new)
Fancy Fly