Skip to content

Commit d52f47a

Browse files
Mariattaterryjreedy
authored andcommitted
[3.6] bpo-30361: Use better example for mixed-type operands (GH-1701) (#1856)
(cherry picked from commit e405d4b)
1 parent 2ee91c8 commit d52f47a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Doc/tutorial/introduction.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,8 @@ give you an error::
100100
There is full support for floating point; operators with mixed type operands
101101
convert the integer operand to floating point::
102102

103-
>>> 3 * 3.75 / 1.5
104-
7.5
105-
>>> 7.0 / 2
106-
3.5
103+
>>> 4 * 3.75 - 1
104+
14.0
107105

108106
In interactive mode, the last printed expression is assigned to the variable
109107
``_``. This means that when you are using Python as a desk calculator, it is

0 commit comments

Comments
 (0)