li = [0,1,2,3,4,5] for index in reversed(range(0,len(li))): print(index)
結果
5 4 3 2 1 0