mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
remove spurious dot from string formatting example; thanks to Anthon van der Neut from docs@
This commit is contained in:
parent
55ae12b019
commit
4fbad84cb6
1 changed files with 1 additions and 1 deletions
|
@ -602,7 +602,7 @@ Expressing a percentage::
|
||||||
|
|
||||||
>>> points = 19.5
|
>>> points = 19.5
|
||||||
>>> total = 22
|
>>> total = 22
|
||||||
>>> 'Correct answers: {:.2%}.'.format(points/total)
|
>>> 'Correct answers: {:.2%}'.format(points/total)
|
||||||
'Correct answers: 88.64%'
|
'Correct answers: 88.64%'
|
||||||
|
|
||||||
Using type-specific formatting::
|
Using type-specific formatting::
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue