# searching medium

Binary Search a Sorted List of Exam Scores

The exam scores are posted lowest to highest, all different. Did anyone hit the magic number? 💯

You get the SORTED scores and a target. Print the position of the target score, or nobody if no one scored it.

Example:

Input: scores = [55, 68, 74, 81, 92], target = 74 Output: 2

Splitting the range in half repeatedly lands exactly on 74, which sits at position 2.

💡 need a hint?

srch-sorted-scores.py🔒 given lines are locked — write your code in between
loading...