bisect
# Bisection algorithms
Functions
bisect
(a, x, lo
=0
, hi
=None
)
# Find the index where to insert item x in list a, assuming a is sorted
insort
(a, x, lo
=0
, hi
=None
)
# Insert item x in list a, and keep it sorted assuming a is sorted