> ## 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-Zero-From-Range

#### Sourcery rule id: `remove-zero-from-range`

#### Description

Replace range(0, x) with range(x)


#### Before

```python
for i in range(0, len(x)):
    do_t()
```

#### After

```python
for i in range(len(x)):
    do_t()
```



#### Explanation

The default starting value for a call to `range()` is 0, so it is unnecessary to
explicitly define it. This refactoring removes such zeros, slightly shortening
the code.
