range() and xrange() take a third parameter that specifies a step. So you can do the following.

range(10, 0, -1)

Which gives

[10, 9, 8, 7, 6, 5, 4, 3, 2, 1] 

But for iteration, you should really be using xrange instead. So,

xrange(10, 0, -1)

Note for Python 3 users: There are no separate range and xrange functions in Python 3, there is just range, which follows the design of Python 2's xrange.

Answer from Chinmay Kanchi on Stack Overflow
๐ŸŒ
Python Morsels
pythonmorsels.com โ€บ looping-in-reverse
Looping in reverse - Python Morsels
May 27, 2025 - To loop in the reverse direction, you can use Python's built-in reversed function: >>> colors = ["purple", "blue", "green", "pink", "red"] >>> for color in reversed(colors): ... print("I like", color) ...
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ backward-iteration-in-python
Backward iteration in Python - GeeksforGeeks
July 11, 2025 - a = [1, 2, 3, 4, 5] #Loop through the List # reverse order using slicing(::-1) for item in a[::-1]: print(item) # same logic written using List comprehension # [print(item) for item in a[::-1]]
Discussions

python - Loop backwards using indices - Stack Overflow
I am trying to loop from 100 to 0. How do I do this in Python? for i in range (100,0) doesn't work. For discussion of why range works the way it does, see Why are slice and range upper-bound exclu... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Reversing a range using a FOR LOOP
You should show what you've tried so far. It's easier to give productive help if we base the help on code you've written. It doesn't require a for-loop though. You can use one, but it would be far more straightforward with a while. Be careful of artificially limiting what tools you consider. More on reddit.com
๐ŸŒ r/learnpython
11
0
December 24, 2022
loops - Traverse a list in reverse order in Python - Stack Overflow
How do I traverse a list in reverse order in Python? So I can start from collection[len(collection)-1] and end in collection[0]. I also want to be able to access the loop index. More on stackoverflow.com
๐ŸŒ stackoverflow.com
Is there a way to reverse a for loop
The reversed() function might be what you're looking for. Return a reverse iterator. seq must be an object which has a __reversed__() method or supports the sequence protocol (the __len__() method and the __getitem__() method with integer arguments starting at 0). ie for i in reversed(range(1, 101)): print(i) output: 100 99 98 97 96 ... 5 4 3 2 1 More on reddit.com
๐ŸŒ r/learnpython
4
1
March 27, 2020
๐ŸŒ
Spark By {Examples}
sparkbyexamples.com โ€บ home โ€บ python โ€บ python for loop in backwards
Python For Loop in Backwards - Spark By {Examples}
May 31, 2024 - Following are the examples of for loop in backwards # Example 1: Get the loop iteration in Backwards # Using reversed() print("Get the loop in backwards") for i in reversed(range(1,6)): # Example 2: Get the for loop in backwards using range() ...
๐ŸŒ
tutorialstonight
tutorialstonight.com โ€บ reverse-for-loop-python
Reverse for loop Python (with Examples)
Another way to create a reverse loop in Python is to use the built-in range() function with a negative step value.
๐ŸŒ
EyeHunts
tutorial.eyehunts.com โ€บ home โ€บ reverse for loop in python | example code
Reverse for loop in Python | Example code - EyeHunts
September 8, 2021 - A code demonstrates how to backward iteration is done with reversed() function on the for-loop. list1 = [1, 2, 3, 4] for i in reversed(list1): print(i) ... list1 = ['Mon', 'Tue', 'Wed', 'Thu'] for i in range(len(list1) - 1, -1, -1): print(list1[i], ...
Find elsewhere
๐ŸŒ
JanBask Training
janbasktraining.com โ€บ community โ€บ python-python โ€บ how-do-i-reverse-a-list-or-loop-over-it-backwards
How do I reverse a list or loop over it backwards? | JanBask Training Community
June 4, 2025 - Python offers built-in features that make this process clean and readable. ... The reversed() function returns an iterator that yields the elements of the list in reverse order. my_list = [1, 2, 3, 4, 5] for item in reversed(my_list): print(item)
๐ŸŒ
Codecademy
codecademy.com โ€บ article โ€บ how-to-reverse-a-list-in-python
How to Reverse a List in Python | Codecademy
Learn how to reverse a list in Python using `.reverse()`, `reversed()`, slicing, the two-pointer method, loops, and recursion with examples.
๐ŸŒ
Medium
medium.com โ€บ becoming-a-better-software-developer โ€บ undetstanding-python-iterators-reversed-iteration-35f1c1d16196
Undetstanding Python Iterators: Reversed Iteration | by Saleem Latif | Becoming a better Software Developer | Medium
March 8, 2023 - >>> numbers = [1, 2, 3, 4, 5] >>> for number in reversed(numbers): ... print(number, end=" ") 5 4 3 2 1 ยท In the above example, we are reverse iterating over a list of numbers using the reversed() function.
๐ŸŒ
TestMu AI Community
community.testmuai.com โ€บ ask a question
How do I use reverse list in Python to loop through a list backwards? - Ask a Question - TestMu AI Community
July 2, 2025 - I want to iterate over a list in reverse order using Python. Whatโ€™s the most efficient or Pythonic way to handle a python reverse list scenario, especially when looping? Are there any differences between using reversedโ€ฆ
๐ŸŒ
CodeRivers
coderivers.org โ€บ blog โ€บ python-reverse-loop-for
Python Reverse `for` Loop: A Comprehensive Guide - CodeRivers
January 29, 2025 - If you need to access both the element and its index during reverse iteration, using range() can be more suitable as it allows you to access the index directly. Choose the method of reverse iteration that makes your code the most readable. For simple reverse iteration over a sequence, the reversed() function is usually the best choice as it is more concise and easier to understand. If your reverse loop is part of a larger algorithm, make sure to document the purpose of the loop clearly, especially if the reverse iteration is not immediately obvious from the code. Python reverse for loops provide a powerful and flexible way to iterate over sequences in reverse order.
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ article โ€บ backward-iteration-in-python
Backward iteration in Python
4 weeks ago - Use reversed() for the most Pythonic and memory-efficient backward iteration. Use [::-1] for short, readable code when a copy is acceptable.
๐ŸŒ
TestMu AI Community
community.testmu.ai โ€บ ask a question
How to Loop Backwards in Python? - TestMu AI Community
December 8, 2024 - How can I loop backwards from 100 to 0 in Python using a backwards range python? I tried using for i in range(100, 0), but it doesnโ€™t work as expected. How can I fix this to achieve a backward loop?
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ ref_list_reverse.asp
Python List reverse() Method
The built-in function reversed() returns a reversed iterator object. ... If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail: sales@w3schools.com ยท If you want to report an error, or if you want to make a suggestion, send us an e-mail: help@w3schools.com ยท HTML Tutorial CSS Tutorial JavaScript Tutorial How To Tutorial SQL Tutorial Python Tutorial W3.CSS Tutorial Bootstrap Tutorial PHP Tutorial Java Tutorial C++ Tutorial jQuery Tutorial
๐ŸŒ
EyeHunts
tutorial.eyehunts.com โ€บ home โ€บ how to reverse a string in python using for loop | example code
How to reverse a string in Python using for loop | Example code
January 13, 2023 - def reverse(text): rev_text = "" for char in text: rev_text = char + rev_text return rev_text print(reverse("ABC DEF")) ... Initialized a while loop with a value of the string and In each iteration, the value of str[count โ€“ 1] concatenated ...