Program - Replacing a string with another string


Topic: Program - Replacing a string with another string

Solution

word = "Hello World"
replace = "Bye"
input = "Hello"
after_replace = word.replace(input, replace)
print(f"String ater replacement: {after_replace}")



List all Python Programs