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

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

The method returns the number of occurrences of a specified substring in a string.