How to Do a Binary Search in Python
python
realpython
Use the bisect module to do a binary search in Python, then implement this classic algorithm yourself, both iteratively and recursively.