Skip to content

Commit 1cfb975

Browse files
Merge pull request #160 from codewizardshq/add-caveat-to-range
Add caveat about boundaries in `range()` function to Python docs.
2 parents 30dd7ea + a1f536e commit 1cfb975

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/python/python-language.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,6 +1305,8 @@ Example Output:
13051305
3 potato
13061306
```
13071307

1308+
Note that the last number is 3 in the example above, not 4!
1309+
13081310
###### Using the `step` parameter of the `range()` function
13091311

13101312
The `range()` function takes a third argument, `step`, which allows you to generate sequences of numbers separated by a given step:

0 commit comments

Comments
 (0)