how to replace a word in string python code example Example: python replace string string.replace(old, new, count)