replace a part of a string with a string python code example Example: python replace string string.replace(old, new, count)