Study
Python · Strings: indexing, slicing, methods
Strings as immutable sequences: indexing, negative indexes, slicing with steps, and the common methods.
- Strings are immutable: every method returns a new string.
- A slice s[start:stop:step] includes start but stops before stop.