Skip to content

Glossary: Python Basics

Slice

Also written: slicing, slices

A piece of a string or list taken with `text[start:stop]`. It starts at `start` and stops just before `stop`.

Where the book teaches it