> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sourcery.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove Redundant Slice Index

#### Sourcery refactoring id: `remove-redundant-slice-index`

#### Description:

Removes unnecessary slice indices.

#### Before:

```python
numbers[0 : len(numbers)]
```

#### After:

```python
numbers[:]
```

#### Explanation:

The default starting value for a slice is 0, so it is unnecessary to explicitly
define it. The default ending value is the end of the collection, so it is
unnecessary to explicitly define this as well.

This refactoring removes unnecessary slice indices, slightly shortening the
code.
