結果 : how to write a reverse loop in python