Python 3 also allows us to slice a string by defining a step through which we can skip characters in the string. The default step is 1, so we iterate through the string one character at a time.
The step is defined after the end index:
string[start:end:step]
Let’s see how this works: