Name

.replace()

Examples
word = "cake"
print(word)  # Prints cake
word = word.replace('c', 'm')
print(word)  # Prints make
Description
Syntax
s.replace(old, new)
Parameters
old
new
Related .split()
.join()
.strip()
.find()
String Formatting
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License