I’m trying to understand the bisect_left example on page 146 (Python version).
-
Why is it necessary to pass comp_gpa func into the search_student func?
-
What is passed in to the parameter ‘target’ for search_student? Shouldn’t the target be a float (GPA)?
-
Why is a boolean returned? Shouldn’t this be the index i?
Thx