python how to make loop go backwards code example Example: inverted for python for i in reversed(range(5)): print(i)