How To Write Binary Search Without Using Random Library Function In Python