Skip to content

Commit 550d9b6

Browse files
[3.15] Docs: Fix missing colon in bisect example function (GH-151061) (GH-151067)
Docs: Fix missing colon in `bisect` example function (GH-151061) (cherry picked from commit 16ede81) Co-authored-by: Sergio López Gómez <sergiolopezgmz.dam@gmail.com>
1 parent 2185b73 commit 550d9b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/bisect.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ example uses :py:func:`~bisect.bisect` to look up a letter grade for an exam sco
200200
based on a set of ordered numeric breakpoints: 90 and up is an 'A', 80 to 89 is
201201
a 'B', and so on::
202202

203-
>>> def grade(score)
203+
>>> def grade(score):
204204
... i = bisect([60, 70, 80, 90], score)
205205
... return "FDCBA"[i]
206206
...

0 commit comments

Comments
 (0)