mirror of
https://github.com/python/cpython.git
synced 2026-06-18 15:42:21 +00:00
[3.14] Docs: Fix missing colon in bisect example function (GH-151061) (GH-151068)
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:
parent
157a5df8cb
commit
103f776581
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,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]
|
||||
...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue