8000 GH-110383: Improve Tutorial for Input Ouput by blaisep · Pull Request #119230 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-110383: Improve Tutorial for Input Ouput #119230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Doc/tutorial/inputoutput.rst
Co-authored-by: Petr Viktorin <encukou@gmail.com>
  • Loading branch information
blaisep and encukou authored May 21, 2024
commit 49a5778df5980594b2bbc1c648fb19f8cc50fdd0
4 changes: 2 additions & 2 deletions Doc/tutorial/inputoutput.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ printing space-separated values. There are several ways to format output.
::

>>> yes_votes = 42_572_654
>>> total_votes = 43_132_495
>>> percentage = yes_votes / (yes_votes + total_votes)
>>> total_votes = 85_705_149
>>> percentage = yes_votes / total_votes
>>> '{:-9} YES votes {:2.2%}'.format(yes_votes, percentage)
' 42572654 YES votes 49.67%'

Expand Down
0