NumPy searchsorted Quiz: side, sorter and Boundary Indices

NumPy searchsorted Quiz: side, sorter and Boundary Indices

Choose one answer. Each attempt draws 10 of 20 questions; the practice pass mark is 8/10. Original topic practice, not an official exam. Insertion indices in one-dimensional ascending arrays; duplicate boundaries and indirect sorting.
1 of 10
What is printed?
python
import numpy as np
a = [1,3,3,6,9]
lo = np.searchsorted(a,3,side='left')
hi = np.searchsorted(a,9,side='left')
print(hi - lo)