def find_ge ( a , x ) : i = bs . bisect_left ( a , x ) if i != len ( a ) : return i raise ValueError
first index greater than a number in python
Find leftmost item greater than or equal to x .
def find_ge(a, x):
    """Find leftmost item greater than or equal to x."""
    i = bs.bisect_left(a, x)
    if i != len(a): return i
    raise ValueError