Why the 'replace' function of Python 3 is not working? I have been trying out this code: str.replace (str [I],str [I+1]) , where str is a string in python. After executing this
Why the 'replace' function of Python 3 is not working? I have been trying out this code: str.replace (str [I],str [I+1]) , where str is a string in python. After executing this
![Python: Find the first appearance of the substring 'not' and 'poor' from a given string, if 'not' follows the 'poor', replace the whole 'not'...'poor' substring with 'good'. Return the resulting string - Python: Find the first appearance of the substring 'not' and 'poor' from a given string, if 'not' follows the 'poor', replace the whole 'not'...'poor' substring with 'good'. Return the resulting string -](https://www.w3resource.com/w3r_images/python-data-type-string-exercise-7.png)