]> granicus.if.org Git - python/commitdiff
[3.6] bpo-30361: Use better example for mixed-type operands (GH-1701) (#1856)
authorMariatta <Mariatta@users.noreply.github.com>
Mon, 29 May 2017 22:19:31 +0000 (15:19 -0700)
committerterryjreedy <tjreedy@udel.edu>
Mon, 29 May 2017 22:19:31 +0000 (18:19 -0400)
(cherry picked from commit e405d4b8dfb8b497e1c3d1f0f8e28030040c165e)

Doc/tutorial/introduction.rst

index 52120a0b16e75f6e53893fc052d002e6df8ea1be..8956aa5a2613503ed2dab3a6a5124df2436b9416 100644 (file)
@@ -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