Python Edit String Variable

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