Replace A String With .replace() In Python
Use .replace()
to do basic text replacement in a string. For example:
=
=
Output:
the slow brown fox is slow
If you only want to replace a certain number, add a third parameter with the count.
=
=
Output:
bravo bravo alfa alfa
-- end of line --