結果 : how to create dynamic programming in python