1 2 3 4 5 6 7 8 9 10
import bisect from collections import namedtuple bisect.bisect_left() l = [1, 3, 2] l.sort() namedtuple