結果 : how to write reverse loop in python