結果 : search algorithm python code