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)
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
[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
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
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
Videos
00:47
Reversed VS Reverse Function in Python #python #coding #python3 ...
02:45
Python's reverse() Vs reversed() | 2MinutesPy - YouTube
05:49
What "reversed()" ACTUALLY Does In Python - YouTube
10:29
Practical Stack Data Structure Example: Reverse a String in Python ...
13:56
Reverse The Given String Using Recursion | Python Programs | ...
04:12
Python Program - Reverse of a number - YouTube
Programiz
programiz.com › python-programming › methods › list › reverse
Python List reverse()
# List Reverse systems.reverse() # updated list print('Updated List:', systems)
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.
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
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.
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
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.