結果 : how to make a simple algorithm in python