mirror of
https://github.com/python/cpython.git
synced 2026-06-28 11:50:50 +00:00
[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:
parent
2185b73dff
commit
550d9b62dd
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||
...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue