mirror of https://github.com/python/cpython.git
bpo-43729: Clarify comment in tutorial example (GH-25191) (GH-26137)
(cherry picked from commit 07797121cc
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
This commit is contained in:
parent
41ed452a91
commit
c90642b0d4
|
@ -73,7 +73,7 @@ operator; to calculate the remainder you can use ``%``::
|
||||||
5
|
5
|
||||||
>>> 17 % 3 # the % operator returns the remainder of the division
|
>>> 17 % 3 # the % operator returns the remainder of the division
|
||||||
2
|
2
|
||||||
>>> 5 * 3 + 2 # result * divisor + remainder
|
>>> 5 * 3 + 2 # floored quotient * divisor + remainder
|
||||||
17
|
17
|
||||||
|
|
||||||
With Python, it is possible to use the ``**`` operator to calculate powers [#]_::
|
With Python, it is possible to use the ``**`` operator to calculate powers [#]_::
|
||||||
|
|
Loading…
Reference in New Issue