Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e405d4b8
Commit
e405d4b8
authored
May 29, 2017
by
gfyoung
Committed by
terryjreedy
May 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-30361: Use better example for mixed-type operands (#1701)
parent
a4095efc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
Doc/tutorial/introduction.rst
Doc/tutorial/introduction.rst
+2
-4
No files found.
Doc/tutorial/introduction.rst
View file @
e405d4b8
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment