demo_string_replace.py:
a = "Hello, World!" print(a.replace("H", "J"))
➜ begtut>python demo_string_replace.py
Jello, World!