diff --git a/Doc/library/string.rst b/Doc/library/string.rst index 56a2a3401ba..1f8e2304f01 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -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::