結果 : example for trial and error method in python