[Python-checkins] bpo-43729: Clarify comment in tutorial example (GH-25191) (GH-26137)
willingc
webhook-mailer at python.org
Fri May 14 16:06:43 EDT 2021
https://github.com/python/cpython/commit/c90642b0d48e5ab40d05b526311ba19bb87f3233
commit: c90642b0d48e5ab40d05b526311ba19bb87f3233
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: willingc <carolcode at willingconsulting.com>
date: 2021-05-14T13:06:34-07:00
summary:
bpo-43729: Clarify comment in tutorial example (GH-25191) (GH-26137)
(cherry picked from commit 07797121cc290ede0b3d3cf02068f3d993cddd15)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland at innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland at innova.no>
files:
M Doc/tutorial/introduction.rst
diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst
index 2a1666128a2015..4613cf76c53099 100644
--- a/Doc/tutorial/introduction.rst
+++ b/Doc/tutorial/introduction.rst
@@ -73,7 +73,7 @@ operator; to calculate the remainder you can use ``%``::
5
>>> 17 % 3 # the % operator returns the remainder of the division
2
- >>> 5 * 3 + 2 # result * divisor + remainder
+ >>> 5 * 3 + 2 # floored quotient * divisor + remainder
17
With Python, it is possible to use the ``**`` operator to calculate powers [#]_::
More information about the Python-checkins
mailing list