diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-10 08:50:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-10 08:50:17 (GMT) |
commit | 8827b95e80302ef19d19561fdcd81c6efde2ecdb (patch) | |
tree | 01ab440c57d8173fe300c693844cfebc9a649128 /Doc/tutorial | |
parent | 1ae7abf6b2f410feee02286a1b2179f2c6e88abd (diff) | |
download | cpython-8827b95e80302ef19d19561fdcd81c6efde2ecdb.zip cpython-8827b95e80302ef19d19561fdcd81c6efde2ecdb.tar.gz cpython-8827b95e80302ef19d19561fdcd81c6efde2ecdb.tar.bz2 |
doc: remove a misleading statement. (GH-98093)
(cherry picked from commit 571e23d99157ed7ad67ca2334a396fc9ddbe07ec)
Co-authored-by: Julien Palard <julien@palard.fr>
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/introduction.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index ba0f477..558b1c3 100644 --- a/Doc/tutorial/introduction.rst +++ b/Doc/tutorial/introduction.rst @@ -70,8 +70,8 @@ the ones with a fractional part (e.g. ``5.0``, ``1.6``) have type :class:`float`. We will see more about numeric types later in the tutorial. Division (``/``) always returns a float. To do :term:`floor division` and -get an integer result (discarding any fractional result) you can use the ``//`` -operator; to calculate the remainder you can use ``%``:: +get an integer result you can use the ``//`` operator; to calculate +the remainder you can use ``%``:: >>> 17 / 3 # classic division returns a float 5.666666666666667 |