News

Negative indexing starts from the end of the string with -1 being the last character, -2 the second-last, and so on. This method is useful when you want to slice a substring relative to the end of ...
str1= substring of a string which has to be replaced str2= substring of a string with which str1 has to be replaced count= number of times we need to replace , by default this value will be 1 Example: ...