replace string in python 3 code example Example: python replace string string.replace(old, new, count)