[3.6] bpo-30361: Use better example for mixed-type operands (GH-1701)… · python/cpython@d52f47a (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit d52f47a

Mariattaterryjreedy

authored and

committed

(cherry picked from commit e405d4b)

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -100,10 +100,8 @@ give you an error::
100 100 There is full support for floating point; operators with mixed type operands
101 101 convert the integer operand to floating point::
102 102
103 - >>> 3 * 3.75 / 1.5
104 - 7.5
105 - >>> 7.0 / 2
106 - 3.5
103 + >>> 4 * 3.75 - 1
104 + 14.0
107 105
108 106 In interactive mode, the last printed expression is assigned to the variable
109 107 ``_``. This means that when you are using Python as a desk calculator, it is