ID EN
Built-in Functions

slice

Python 3.11

Return a slice object representing the set of indices specified by range(start, stop, step). The start and step arguments default to None.

Syntax

PYTHON
class slice(stop)

See Also

slice itertools.islice() iterator