結果 : how to traverse backwards in python