Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit baf30da

Browse files
committed
remove spurious dot from string formatting example; thanks to Anthon van der Neut from docs@
1 parent 0b7e536 commit baf30da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/string.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ Expressing a percentage::
583583

584584
>>> points = 19
585585
>>> total = 22
586-
>>> 'Correct answers: {:.2%}.'.format(points/total)
586+
>>> 'Correct answers: {:.2%}'.format(points/total)
587587
'Correct answers: 86.36%'
588588

589589
Using type-specific formatting::

0 commit comments

Comments
 (0)