Skip to content

Commit 09c7965

Browse files
Update Doc/library/bisect.rst
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
1 parent 541e566 commit 09c7965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/bisect.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ 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

203203
>>> def grade(score)
204-
... i = bisect([60, 70, 80, 90, score)
204+
... i = bisect([60, 70, 80, 90], score)
205205
... return "FDCBA"[i]
206206
...
207207
>>> [grade(score) for score in [33, 99, 77, 70, 89, 90, 100]]

0 commit comments

Comments
 (0)