mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
bpo-43729: Clarify comment in tutorial example (GH-25191)
This commit is contained in:
parent
dc0b364de4
commit
07797121cc
1 changed files with 1 additions and 1 deletions
|
@ -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 [#]_::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue