Articles → Python → Replace Function In Python

Replace Function In Python






Purpose





Example


message = "this was the message"

message = message.replace("was", "is")

print(message)



Output


Picture showing the output of Replace function in python



Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, May 15, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250