🌐
W3Schools
w3schools.com › python › ref_func_reversed.asp
Python reversed() Function
Remove List Duplicates Reverse a String Add Two Numbers · 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
🌐
Programiz
programiz.com › python-programming › methods › built-in › reversed
Python reversed()
country_capitals = { 'England': 'London', 'Canada': 'Ottawa', 'Germany': 'Berlin' } # access keys in reversed order # and convert it to a tuple country = tuple(reversed(country_capitals)) print(country)
Discussions

reversed vs [::-1]
Note that reversed() doesn't return a list, it returns an iterator. Your code snippets aren't equivalent. Should programmer choose carefully between slicing and reversed? Only if you have huge lists that take up gigabytes of memory. Just choose the one that expresses your intent more clearly. More on reddit.com
🌐 r/Python
6
3
June 24, 2014
[Video] Python's reverse() Vs reversed() - How they differ
Namaste! Thanks for submitting to r/developersIndia . Make sure to follow the Community Code of Conduct while participating in this thread. Join ToolJet's CEO & Founder Navaneeth Padanna Kalathil: An AMA on Software Engineering, Open-Source, and more! - Jan 20th, 12:00 PM IST! I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/developersIndia
1
0
November 11, 2023
why reversed (list) is iteratorable but list.reverse() is not?
Basically because the reverse() function has a return type of None, it modifies the list in place. It's a call to a function, not to the list itself. Just like you couldn't do reversed_list = list.reverse(), because reversed_list would hold the value of None (But the list variable would still be reversed in-place). Where list[::-1] is a call to the list itself, with instructions on how to iterate through it. More on reddit.com
🌐 r/learnpython
24
12
August 26, 2024
Why does [::1] reverse a string in Python?
On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge. If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options: Limiting your involvement with Reddit, or Temporarily refraining from using Reddit Cancelling your subscription of Reddit Premium as a way to voice your protest. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/learnprogramming
15
12
September 21, 2023
🌐
Programiz
programiz.com › python-programming › methods › list › reverse
Python List reverse()
# List Reverse systems.reverse() # updated list print('Updated List:', systems)
🌐
Real Python
realpython.com › ref › builtin-functions › reversed
reversed() | Python’s Built-in Functions – Real Python
The .__reversed__() special method allows you to support reversed() in your custom classes. It must return an iterator over the items of the current list in reverse order. For example, say you want to iterate over a range of floating-point numbers.
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-reversed-function
Python reversed() Method - GeeksforGeeks
February 17, 2026 - It works with sequence types like lists, tuples, strings and ranges or any object that implements the __reversed__() method. Example: In this example, a list is reversed using reversed() and converted into a list for display.
🌐
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
🌐
Real Python
realpython.com › reverse-string-python
Reverse Strings in Python: reversed(), Slicing, and More – Real Python
July 31, 2023 - In this example, you apply the slicing operator on greeting to create a reversed copy of it. Then you use that new reversed string to feed the loop. In this case, you’re iterating over a new reversed string, so this solution is less memory-efficient than using reversed(). If you’ve ever tried to reverse a Python list, then you know that lists have a handy method called .reverse() that reverses the underlying list in place.
🌐
Tutorialspoint
tutorialspoint.com › python › python_reversed_function.htm
Python reversed() Function
Since the string is also a sequence object, the reversed() can be apply to it. If we reverse a string, this function will return its characters in reverse order as shown in the below Python code.
Find elsewhere
🌐
ThePythonGuru
thepythonguru.com › python-builtin-functions › reversed
Python reversed() function - ThePythonGuru.com
May 27, 2025 - print( reversed([44, 11, -90, 55, 3]) ) print(list(reversed([44, 11, -90, 55, 3]))) # reversing a list print( list(reversed((6, 1, 3, 9)))) # reversing a tuple print(list(reversed("hello"))) # reversing a string
🌐
Real Python
realpython.com › python-reverse-list
Reverse Python Lists: Beyond .reverse() and reversed() – Real Python
June 28, 2023 - For example, to reverse the list represented in the diagram, you can loop over the first half of the list and swap the element at index 0 with its mirror at index -1 in the first iteration.
🌐
Python Reference
python-reference.readthedocs.io › en › latest › docs › functions › reversed.html
reversed — Python Reference (The Right Way) 0.1 documentation
>>> r = reversed([1, 2]) >>> r.next() 2 >>> r.next() 1 >>> r.next() Traceback (most recent call last): File "<interactive input>", line 1, in <module> StopIteration
🌐
Codecademy
codecademy.com › docs › python › built-in functions › reversed()
Python | Built-in Functions | reversed() | Codecademy
August 22, 2023 - Takes in an iterable object, such as a list, string, or a tuple and returns a reversed 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
March 8, 2025 - Line 4: We call the reverse() method on the list. Line 6: We print the updated list. The slicing method works on iterables in Python and we exploit this to our advantage. However, the original list remains unchanged because a shallow copy is created in slicing.
🌐
W3Schools
w3schools.com › python › python_howto_reverse_string.asp
How to reverse a String in Python
In this particular example, the slice statement [::-1] means start at the end of the string and end at position 0, move with the step -1, negative one, which means one step backwards.
🌐
ZetCode
zetcode.com › python › reverse
Python reverse - reversing Python sequences
May 31, 2024 - The reversed built-in function returns a reverse iterator. The object's __reversed__ magic method is called by the reversed built-in to implement reverse iteration. In the first example, we reverse a Python list with the reverse method and the [::-1] operator.
🌐
Scaler
scaler.com › topics › reversed-in-python
Reversed in Python | Python reversed() Function - Scaler Topics
January 17, 2025 - In this example, we reversed a list with three elements and then accessed each element with the next function after accessing the 1, the last element in the reversed list. The iterator gets exhausted.
🌐
Spark By {Examples}
sparkbyexamples.com › home › python › python reversed() function with examples
Python reversed() Function with Examples - Spark By {Examples}
January 16, 2024 - The reversed() is a built-in function ... back to the iterable object you want. For example, if you want the result in the list, use the list(list_reverseiterator)....
🌐
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
🌐
Geek Python
geekpython.in › reverse-vs-reversed-in-python
Reverse Vs Reversed Function In Python - Comparison
November 7, 2025 - In the above example, we specified the string but converted it into the list before performing the reverse operation. We’ll get an error if we use the reverse() function on a string.
🌐
Reddit
reddit.com › r/pythontips › [video] python's reverse() vs reversed() - how they differ
r/pythontips on Reddit: [Video] Python's reverse() Vs reversed() - How they differ
August 16, 2023 - A place to get a quick fix of python tips and tricks to make you a better Pythonista. ... The reverse() method is all about in-place reversal, directly modifying the original list. On the flip side, reversed() is a function that returns a reversed iterator, allowing you to create a reversed version without altering the original list. This video will walk you through examples, use cases, and some practical scenarios where one might be more useful than the other.