結果 : implement des algorithm in python