What is the easiest way in Python to replace a character in a string?
For example:
text = \"abcdefg\"; text[1] = \"Z\"; ^
new = text[:1] + 'Z' + text[2:]