Skip to content

Commit e405d4b

Browse files
gfyoungterryjreedy
authored andcommitted
bpo-30361: Use better example for mixed-type operands (#1701)
1 parent a4095ef commit e405d4b

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)