To get a new reversed list, apply the reversed function and collect the items into a list:

>>> xs = [0, 10, 20, 40]
>>> list(reversed(xs))
[40, 20, 10, 0]

To iterate backwards through a list:

>>> xs = [0, 10, 20, 40]
>>> for x in reversed(xs):
...     print(x)
40
20
10
0
Answer from codaddict on Stack Overflow
๐ŸŒ
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
Discussions

python - How do I reverse a list or loop over it backwards? - Stack Overflow
Why use reversed() instead of slicing? Read the Zen of Python, rule number 7: Readability counts! 2017-04-25T08:26:15.837Z+00:00 ... Extended slice syntax is explained here. See also, documentation. ... It works for any interable, not just lists. Disadvantage is that it's not in place. 2010-10-15T07:04:10.803Z+00:00 ... @Swiss Not in every iterable, for example... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Beginner question: assigning variable to list.reverse()
Any idea why assigning variable Y to this does not result in anything ยท Yes. To avoid an accident where you think you have a new, separate, list there is a convention in Python that a function which changes something in place returns None so that you canโ€™t proceed thinking you have a new thing. More on discuss.python.org
๐ŸŒ discuss.python.org
0
0
May 12, 2022
Why does [::-1] reverse a list?
[Start:stop:step] if you're going in steps by negative one, you're going backwards More on reddit.com
๐ŸŒ r/learnpython
57
187
March 12, 2022
Reverse recursively a linked list
Not exactly what you are looking for, but this should give you the tools you need (if you haven't already seen it): https://rust-unofficial.github.io/too-many-lists/ More on reddit.com
๐ŸŒ r/rust
13
6
August 28, 2020
๐ŸŒ
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.
๐ŸŒ
Real Python
realpython.com โ€บ python-reverse-list
Reverse Python Lists: Beyond .reverse() and reversed() โ€“ Real Python
June 28, 2023 - The rest of the magic in this example comes from using a value of -1 for step. When you run this trick, you get a copy of the original list in reverse order without affecting the input data. If you fully rely on implicit indices, then the slicing syntax gets shorter, cleaner, and less error-prone: ... >>> digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> # Rely on default index values >>> digits[::-1] [9, 8, 7, 6, 5, 4, 3, 2, 1, 0] Here, you ask Python to give you the complete list ([::-1]) but going over all the items from back to front by setting step to -1.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ python-reversing-list
Reversing a List in Python - GeeksforGeeks
For Example: Input: [10, 20, 30, 40, 50] Output: [50, 40, 30, 20, 10] Let's see other different methods to reverse a list. reverse() method reverses the elements of the list in-place and it modify the original list without creating a new list.
Published ย  November 26, 2025
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ python-list-reverse
Python List Reverse() - GeeksforGeeks
April 25, 2025 - In this example, we are reversing the list of mixed data types using reverse() method. ... Another common way to reverse a list in Python is using slicing ([::-1]).
Find elsewhere
๐ŸŒ
Tutorialspoint
tutorialspoint.com โ€บ python โ€บ list_reverse.htm
Python List reverse() Method
The original list is then reversed ... or not. str = "malayalam" list1 = list(str) # Copy the list in another list using copy() method list2 = list1.copy() # Reverse the list using the reverse() method res = list1.reverse() if list1 == list2: print("The string is a palindrome") else: print("The string is not a palindrome")...
๐ŸŒ
DataCamp
datacamp.com โ€บ tutorial โ€บ python-reverse-list
Python Reverse List: How to Reorder Your Data | DataCamp
February 27, 2025 - Since it creates a new list, it's helpful when you want to maintain the original list's order. #Python Example: Reversing a list with slicing numbers = [1, 2, 3, 4, 5] reversed_numbers = numbers[::-1] print(reversed_numbers) # Output: [5, 4, 3, 2, 1] print(numbers) # Original list remains [1, ...
๐ŸŒ
datagy
datagy.io โ€บ home โ€บ python posts โ€บ how to reverse a python list (6 ways)
How to Reverse a Python List (6 Ways) โ€ข datagy
February 15, 2023 - In the example above, we named the slicer reverser in order to make it clear what the slice object is doing. ... The best and most Pythonic way to reverse a list in Python is to use the list.reverse() method.
๐ŸŒ
Cherry Servers
cherryservers.com โ€บ home โ€บ blog โ€บ python โ€บ how to reverse a list in python (using 3 simple ways)
How to Reverse a List in Python (Using 3 Simple Ways) | Cherry Servers
November 7, 2025 - Benefit from an open cloud ecosystem with seamless API & integrations and a Python library. ... To reverse a list in Python, two basic methods are commonly used, the built-in reverse() method and slicing with [::-1].
๐ŸŒ
Medium
geekpython.medium.com โ€บ 8-ways-to-reverse-the-elements-in-a-python-list-ad50889bdd7e
8 Ways To Reverse The Elements In A Python List | by Sachin Pal | Medium
November 25, 2022 - To access the values, you have ... the following example, the list object my_lst is reversed and then accessed the values using the next() function from the reversed iterator object new_lst....
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ python-reverse-list-reversing-an-array-in-python
Python Reverse List โ€“ Reversing an Array in Python
September 6, 2022 - Lists are mutable, meaning they are changeable and dynamic โ€“ you can update, delete, and add new list items to the list at any time throughout the life of the program. The .reverse() method in Python is a built-in method that reverses the list in place.
๐ŸŒ
Mimo
mimo.org โ€บ glossary โ€บ python โ€บ list-reverse-method
Python List reverse() Method: Syntax, Methods, and Examples
Learn how to reverse a list in Python using slicing, reverse(), reversed(), and loops. Compare methods, use cases, and performance best practices.
๐ŸŒ
dbader.org
dbader.org โ€บ blog โ€บ python-reverse-list
How to Reverse a List in Python โ€“ dbader.org
July 11, 2017 - You can leave them out and, for example, create a full (shallow) copy of a list like this: ... The step parameter, sometimes called the stride, is also interesting. Hereโ€™s how you can create a copy of a list that only includes every other element of the original: ... We ask Python to give us the full list (::), but to go over all of the elements from back to front by setting the step to -1. Pretty neat, eh? Reversing a list using reverse iteration with the reversed() built-in is another option.
๐ŸŒ
Scaler
scaler.com โ€บ home โ€บ topics โ€บ python list reverse()
Python List reverse() - Scaler Topics
May 7, 2024 - Learn how to reverse a list in Python using three different methods. In this article on scaler topics, every approach for reversing a list is explained with an example.
๐ŸŒ
Upgrad
upgrad.com โ€บ home โ€บ tutorials โ€บ software & tech โ€บ how to reverse a list in python?
Reversing a List in Python
November 11, 2024 - If you want to work with a new list that contains the reversed elements, convert the iterator to a list using the list() function. ... # Example 1 - Using reverse() original_list = [1, 2, 3, 4, 5] original_list.reverse() print(original_list) ...
๐ŸŒ
Python Guides
pythonguides.com โ€บ reverse-a-list-in-python
How to Reverse a List in Python
September 30, 2025 - Learn how to reverse a list in Python using slicing, loops, reverse() method, and more. Step-by-step guide with practical code examples for beginners and pros.
๐ŸŒ
Python.org
discuss.python.org โ€บ python help
Beginner question: assigning variable to list.reverse() - Python Help - Discussions on Python.org
May 12, 2022 - Any idea why assigning variable Y to this does not result in anything? create a list of prime numbers x = [2, 3, 5, 7] reverse the order of list elements y=x.reverse() print(y)
๐ŸŒ
Towards Data Science
towardsdatascience.com โ€บ home โ€บ latest โ€บ how to reverse python lists more efficiently
How To Reverse Python Lists More Efficiently | Towards Data Science
January 20, 2025 - We can reverse the list using slicing and a step size of 1. >>> my_lst_reversed = my_lst[::-1] >>> my_lst_reversed [80, 100, 40, 25, 30, 0, 10] ... It specifies a negative step size of 1, which means that the element are retrieved in the reversed ...