demo_ref_reversed.py:
alph = ["a", "b", "c", "d"] ralph = reversed(alph) for x in ralph: print(x)
C:\Users\My Name>python demo_reversed.py
d
c
b
a