Search notes:

Python: slice (type)

slice() slice returns slice object.
sl = slice(stop)
sl = slice(start, stop)
sl = slice(start, stop, step)

See also

itertools.isslice()
Other Built-in types

Index