Skip to content

Commit 49abd30

Browse files
miss-islingtonaaqaishtyaq
authored andcommitted
bpo-34161: Remove extra parentheses in output formatting tutorial (GH-8350)
The parentheses were incorrect. (cherry picked from commit cb5f3fd) Co-authored-by: Aaqa Ishtyaq <aaqaishtyaq@gmail.com>
1 parent 97c079c commit 49abd30

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/tutorial/inputoutput.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ printing space-separated values. There are several ways to format output.
4141
::
4242

4343
>>> yes_votes = 42_572_654 ; no_votes = 43_132_495
44-
>>> percentage = (yes_votes/(yes_votes+no_votes)
45-
>>> '{:-9} YES votes {:2.2%}'.format(yes_votes, percentage))
44+
>>> percentage = yes_votes/(yes_votes+no_votes)
45+
>>> '{:-9} YES votes {:2.2%}'.format(yes_votes, percentage)
4646
' 42572654 YES votes 49.67%'
4747

4848
* Finally, you can do all the string handling yourself by using string slicing and

0 commit comments

Comments
 (0)