To replace "hello" with "bonjour" in the given sentence, we can use the replace()
function in Python.
Here's how to do it:
main.py103 chars4 lines
This will output:
main.py20 chars2 lines
Explanation:
replace()
function to replace the substring "hello" with "bonjour".gistlibby LogSnag