replace
Return a copy of the string with all occurrences of substring old replaced by new.
1
str.replace(old, new, count=-1)
old
The old substring to be replaced.
count
How many occurrences to replace.
Examples
1
'hello world'.replace('world', 'Python')