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 OverflowW3Schools
w3schools.com › python › ref_list_reverse.asp
Python List reverse() Method
Python Examples Python Compiler ... Bootcamp Python Certificate Python Training ... The reverse() method reverses the sorting order of the elements....
Programiz
programiz.com › python-programming › methods › list › reverse
Python List reverse()
Become a certified Python programmer. Try Programiz PRO! ... The reverse() method reverses the elements of the list.
Videos
05:16
How To Reverse A List In Python - YouTube
04:20
Python Interview Prep | Alternate Ways to Reverse a String using ...
05:49
What "reversed()" ACTUALLY Does In Python - YouTube
Reverse A List Without Using reverse() | Python Example
05:06
Reversing Strings in Python with Slicing - YouTube
Python Tutorial : Reverse a String Using For Loop
Mimo
mimo.org › glossary › python › list-reverse-method
Python List reverse() Method: Syntax, Methods, and Examples
The reverse() method does not return a new list—it returns None. If you use reverse() right after you append a value to the end of the list, you’ll see the new value appear first after reversal. When you want to modify the list directly without creating a new one. Useful in memory-sensitive contexts. Great when working with an existing list you don't need to preserve. This is a concise and elegant way to reverse a list in Python.
DataCamp
datacamp.com › tutorial › python-reverse-list
Python Reverse List: How to Reorder Your Data | DataCamp
February 27, 2025 - The reverse() method is efficient for memory since it doesn't require creating a copy of the list. However, it permanently changes the order of elements in the original list, so it's best used when the initial list is not needed in its original order. #Python Example: Reversing a list in place numbers = [1, 2, 3, 4, 5] numbers.reverse() print(numbers) #Output: [5, 4, 3, 2, 1]
W3Schools
w3schools.com › python › ref_func_reversed.asp
Python reversed() Function
Python Overview Python Built-in Functions Python String Methods Python List Methods Python Dictionary Methods Python Tuple Methods Python Set Methods Python File Methods Python Keywords Python Exceptions Python Glossary · Built-in Modules Random Module Requests Module Statistics Module Math Module cMath Module · Remove List Duplicates Reverse a String Add Two Numbers
Top answer 1 of 16
1735
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
2 of 16
1542
>>> xs = [0, 10, 20, 40]
>>> xs[::-1]
[40, 20, 10, 0]
Extended slice syntax is explained here. See also, documentation.
GeeksforGeeks
geeksforgeeks.org › python › python-reversed-function
Python reversed() Method - GeeksforGeeks
February 17, 2026 - reversed() function in Python returns an iterator that accesses elements in reverse order. It does not create a new reversed copy of the sequence, making it memory-efficient. It works with sequence types like lists, tuples, strings and ranges ...
Programiz
programiz.com › python-programming › methods › built-in › reversed
Python reversed()
string = 'Python' result = ... argument. iterable - an iterable such as list, tuple, string, dictionary, etc. The reversed() method returns an iterator object....
Educative
educative.io › answers › how-to-use-the-reverse-and-reversed-methods-in-python
How to use the reverse() and reversed() methods in Python
The list class in Python has built-in reverse() function, which when called, reverses the order of all the elements in the list. This function does not take any argument and reverses the object on which it is called upon.
Tutorialspoint
tutorialspoint.com › python › list_reverse.htm
Python List reverse() Method
The Python List reverse() method reverses a list. That means, the first object in the list becomes the last object and vice versa. Another common technique used to reverse a string is done using the slicing operator with the syntax [::-1].
Python.org
discuss.python.org › ideas
Method for reversing strings - Ideas - Discussions on Python.org
February 20, 2025 - There may be other methods like splitting the string, reversing the resulting list, and then joining it back, but that’s a bit of work! There have been several times in my QA career where I am scripting in Python and need to reverse a string, but I have to look up the [::-1] syntax because ...
W3Schools
w3schools.com › python › python_howto_reverse_string.asp
How to reverse a String in Python
Python Examples Python Compiler Python Exercises Python Quiz Python Challenges Python Server Python Syllabus Python Study Plan Python Interview Q&A Python Bootcamp Python Certificate Python Training ... Learn how to reverse a String in Python.
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.
Tutorialspoint
tutorialspoint.com › python › python_reversed_function.htm
Python reversed() Function
The Python reversed() function returns an iterator object which allows us to access the specified sequence in reverse order. This function is commonly used in the situation where we want to iterate over the elements of a sequence in reverse, without