๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ ref_list_reverse.asp
Python List reverse() Method
Q&A Python Bootcamp Python Training ... The reverse() method reverses the sorting order of the elements. ... The built-in function reversed() returns a reversed iterator object. ... If you want to use W3Schools services as an educational ...
๐ŸŒ
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
๐ŸŒ
Programiz
programiz.com โ€บ python-programming โ€บ methods โ€บ built-in โ€บ reversed
Python reversed()
The reversed() function returns an iterator object that provides access to the elements of an iterable (list, tuple, string, etc.) in reverse order. string = 'Python' result = reversed(string) # convert the iterator to list and print it print(list(result)) # Output: ['n', 'o', 'h', 't', 'y', 'P']
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ python_howto_reverse_string.asp
How to reverse a String in Python
Learn how to reverse a String in Python. There is no built-in function to reverse a String in Python.
๐ŸŒ
Real Python
realpython.com โ€บ ref โ€บ builtin-functions โ€บ reversed
reversed() | Pythonโ€™s Built-in Functions โ€“ Real Python
The built-in reversed() function takes a sequence as an argument and returns an iterator that yields the elements in reverse order.
๐ŸŒ
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.
๐ŸŒ
Codecademy
codecademy.com โ€บ docs โ€บ python โ€บ built-in functions โ€บ reversed()
Python | Built-in Functions | reversed() | Codecademy
August 22, 2023 - The reversed() function takes in an iterable object, such as a list, string, or a tuple and returns a reversed iterator object. ... Learn to analyze and visualize data using Python and statistics.
๐ŸŒ
ThePythonGuru
thepythonguru.com โ€บ python-builtin-functions โ€บ reversed
Python reversed() function - ThePythonGuru.com
January 7, 2020 - from collections import namedtuple Card = namedtuple('Card', ['rank', 'suit']) class CardDeck: suits = ('club', 'diamond', 'heart', 'spades') ranks = tuple((str(i) for i in range(2, 11))) + tuple("JQKA") def __init__(self): self._cards = [Card(r, s) for s in self.suits for r in self.ranks ] def __len__(self): return len(self._cards) def __getitem__(self, index): return self._cards[index] # def __reversed__(self): this is how you would define __reversed__() method # return self._cards[::-1] deck = CardDeck() print(deck) print( deck[0], deck[-1] ) # deck before reversing reversed_deck = list(reversed(deck)) print(reversed_deck[0], reversed_deck[-1] ) # deck after reversing ... This site generously supported by DataCamp. DataCamp offers online interactive Python Tutorials for Data Science.
Find elsewhere
๐ŸŒ
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 reversed() function does not reverse anything but returns an object to iterate over the elements in reverse order.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python-list-reverse
Python List Reverse() - GeeksforGeeks
April 25, 2025 - It only takes one argument, element ... print(a ... The reverse() method is an inbuilt method in Python that reverses the order of elements in a list....
๐ŸŒ
Real Python
realpython.com โ€บ reverse-string-python
Reverse Strings in Python: reversed(), Slicing, and More โ€“ Real Python
July 31, 2023 - These features allow you to use slicing to directly generate a copy of a given string in reverse order. The second option is to use the built-in function reversed() to create an iterator that yields the characters of an input string in reverse order.
๐ŸŒ
Educative
educative.io โ€บ answers โ€บ how-to-use-reverse-in-python
How to use reverse() in Python
The reversed() function takes any sequence as an argument and returns a reversed iterator object. The iterator object accesses the objects of the sequence in reverse order.
๐ŸŒ
Scaler
scaler.com โ€บ home โ€บ topics โ€บ reversed in python | python reversed() function
Reversed in Python | Python reversed() Function - Scaler Topics
July 5, 2022 - The built-in reversed function in Python is used to reverse a sequence like a list, string, or tuple by creating a reverse iterator of the given sequence.
๐ŸŒ
DataCamp
datacamp.com โ€บ tutorial โ€บ python-reverse-list
Python Reverse List: How to Reorder Your Data | DataCamp
February 27, 2025 - Solution: Use the reversed() function, which returns an iterator without creating a new list in memory. This is especially useful if you only need to iterate over the list in reverse without storing it. #Python reversed() to save memory with large lists large_list = range(1000000) for item ...
๐ŸŒ
Python.org
discuss.python.org โ€บ ideas
Method for reversing strings - Ideas - Discussions on Python.org
February 20, 2025 - I would like to add a .reverse() method for strings. I think most modern languages have something like that and [::-1] is a bit archaic with little charm. There may be other methods like splitting the string, reversing tโ€ฆ
๐ŸŒ
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.
๐ŸŒ
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)
๐ŸŒ
Python Forum
python-forum.io โ€บ thread-32496.html
Reverse Function in Python
Hi everyone i am beginner in python i am facing with this exercice can anyone explained how to write this in Python : Exercice : ----------------------------- Write a function reverse that receives an integer n as a parameter and returns that in...
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ python-reverse-list-reversing-an-array-in-python
Python Reverse List โ€“ Reversing an Array in Python
September 6, 2022 - Returning an iterable object means that the function returns the list items in reverse order. It doesn't reverse the list in place. This means that it doesn't modify the original list, nor does it create a new list which is a copy of the original ...