From bd5aa22faf44868c1af821166376081ac08b04f4 Mon Sep 17 00:00:00 2001 From: kingtheoden Date: Thu, 20 Dec 2018 06:07:33 -0500 Subject: [PATCH] More concise language and an example code. (#25421) Erase an unnecessary word from the initial description. Add an example function call above where the parameters are explained for a more visual learning experience. --- guide/english/python/range-function/index.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/guide/english/python/range-function/index.md b/guide/english/python/range-function/index.md index 2ed6071cc6..0b9c5ee187 100644 --- a/guide/english/python/range-function/index.md +++ b/guide/english/python/range-function/index.md @@ -2,7 +2,7 @@ title: Range Method --- # Range Function -If you do need to iterate over a sequence of numbers, the built-in function range() comes in handy. It generates arithmetic progressions: +If you need to iterate over a sequence of numbers, the built-in function range() comes in handy. It generates arithmetic progressions: #### Example Usage ```py @@ -20,6 +20,10 @@ for i in range(5): ``` #### Example with optional additional arguments + ```py + # A range function call. +range(start, stop, step) + ``` The first argument, *start*, is the starting number of the sequence. The second argument, *stop*, means to generate numbers up to, but not including this number.