Using a step value in string slicing allows you to skip characters. For example, [::2] will return characters.

The method replaces a specified substring with another substring.

The replace() method returns a where all occurrences of the specified phrase are replaced with the specified replacement.

The replace() method can also be used to remove specified characters from a string by replacing them with an empty .

The replace() method is case-sensitive, meaning that it will only replace occurrences of the specified phrase with the specified replacement if they have the same .