<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def find_lt(a, x):
 """Find rightmost value less than x"""

    i = bisect.bisect_left(a, x)
    if i:
        return a[i-1]
    raise ValueError