def where(ol,value):
si = None<EOL>ei = None<EOL>for i in range(<NUM_LIT:0>,ol.__len__()):<EOL><INDENT>ele = ol[i]<EOL>if(value >ele):<EOL><INDENT>si = i <EOL><DEDENT>elif(value == ele):<EOL><INDENT>return((i,i))<EOL><DEDENT>else:<EOL><INDENT>ei = i <EOL>return((si,ei))<EOL><DEDENT><DEDENT>return((si,ei))<EOL>
ol = [0, 4, 6, 8, 10, 14]
where(ol,-1)
where(ol,1)
where(ol,2)
where(ol,3)
where(ol,4)
where(ol,9)
where(ol,14)
where(ol,17)