Slicing (Python)

Slicing extracts a portion of a sequence (string, list, or tuple) using the [start:stop:step] notation. The start is included and the stop is excluded.