Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb47bca commit cb5f3fdCopy full SHA for cb5f3fd
1 file changed
Doc/tutorial/inputoutput.rst
@@ -41,8 +41,8 @@ printing space-separated values. There are several ways to format output.
41
::
42
43
>>> 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))
+ >>> percentage = yes_votes/(yes_votes+no_votes)
+ >>> '{:-9} YES votes {:2.2%}'.format(yes_votes, percentage)
46
' 42572654 YES votes 49.67%'
47
48
* Finally, you can do all the string handling yourself by using string slicing and
0 commit comments