[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 16ede813eb)

Co-authored-by: Sergio López Gómez <sergiolopezgmz.dam@gmail.com>
This commit is contained in:
Miss Islington (bot) 2026-06-08 11:47:41 +02:00 committed by GitHub
parent 2185b73dff
commit 550d9b62dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -200,7 +200,7 @@ example uses :py:func:`~bisect.bisect` to look up a letter grade for an exam sco
based on a set of ordered numeric breakpoints: 90 and up is an 'A', 80 to 89 is
a 'B', and so on::
>>> def grade(score)
>>> def grade(score):
... i = bisect([60, 70, 80, 90], score)
... return "FDCBA"[i]
...