mirror of https://github.com/python/cpython
remove spurious dot from string formatting example; thanks to Anthon van der Neut from docs@
This commit is contained in:
parent
0b7e5369f1
commit
baf30da240
|
@ -583,7 +583,7 @@ Expressing a percentage::
|
|||
|
||||
>>> points = 19
|
||||
>>> total = 22
|
||||
>>> 'Correct answers: {:.2%}.'.format(points/total)
|
||||
>>> 'Correct answers: {:.2%}'.format(points/total)
|
||||
'Correct answers: 86.36%'
|
||||
|
||||
Using type-specific formatting::
|
||||
|
|
Loading…
Reference in New Issue