diff options
| author | gfyoung <gfyoung17@gmail.com> | 2017-05-29 17:26:31 -0400 |
|---|---|---|
| committer | terryjreedy <tjreedy@udel.edu> | 2017-05-29 17:26:31 -0400 |
| commit | e405d4b8dfb8b497e1c3d1f0f8e28030040c165e (patch) | |
| tree | 59c7d15ad6348fa286755cb3a23c751d9ee82b44 /Doc/tutorial/introduction.rst | |
| parent | a4095efc3f26374a27cf8580a4f5ae4f7eb2f806 (diff) | |
| download | cpython-git-e405d4b8dfb8b497e1c3d1f0f8e28030040c165e.tar.gz | |
bpo-30361: Use better example for mixed-type operands (#1701)
Diffstat (limited to 'Doc/tutorial/introduction.rst')
| -rw-r--r-- | Doc/tutorial/introduction.rst | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index 52120a0b16..8956aa5a26 100644 --- a/Doc/tutorial/introduction.rst +++ b/Doc/tutorial/introduction.rst @@ -100,10 +100,8 @@ give you an error:: There is full support for floating point; operators with mixed type operands convert the integer operand to floating point:: - >>> 3 * 3.75 / 1.5 - 7.5 - >>> 7.0 / 2 - 3.5 + >>> 4 * 3.75 - 1 + 14.0 In interactive mode, the last printed expression is assigned to the variable ``_``. This means that when you are using Python as a desk calculator, it is |
