while low <= high: mid = (low + high) // 2 if arr[mid] == target: return mid elif arr[mid] < target: low = mid + 1 else: high = mid - 1
Notice the difference in a typical pull request description: comdux07 codes better
Let’s look at a real-world example. A junior developer writes this: while low <= high: mid = (low +