Python‎ > ‎str‎ > ‎

str.replace()


Introduction
First find and then replace item requested in quotes.

Syntax
str.replace(old, new[, count]) -> str

Parameters
str=string

Example
 The return is:
 >>> "Python Lake".replace("Python Lake", "Python Research Centre")
'Python Research Centre'
>>>

Comments