結果 : value iteration python code