🌐
GeeksforGeeks
geeksforgeeks.org › python › python-reversed-function
Python reversed() Method - GeeksforGeeks
February 17, 2026 - ... Explanation: reversed(t) reverses tuple elements, reversed(r) reverses numbers produced by range(1, 5) and list() displays the reversed sequence. Example 2: Here, reversed() is used inside a for loop to print characters of a string in reverse.
🌐
EyeHunts
tutorial.eyehunts.com › home › reverse for loop in python | example code
Reverse for loop in Python | Example code - EyeHunts
September 8, 2021 - A code demonstrates how to backward iteration is done with reversed() function on the for-loop. list1 = [1, 2, 3, 4] for i in reversed(list1): print(i) ... list1 = ['Mon', 'Tue', 'Wed', 'Thu'] for i in range(len(list1) - 1, -1, -1): print(list1[i], ...
Discussions

Reversing a list in Python?
I have no idea what the '::' means Please read about ranges in python. They are used all the time and you really need to understand them. There is reverse() and reversed() in python. One changes the list and the other doesn't change the list, but iterates through it from the back. More on reddit.com
🌐 r/learnprogramming
12
1
February 11, 2022
Why isn't my loop iterating backwards in python?
Hint: Look up documentation on the ‘range’ function…does it actually do what you think it does given the two arguments you provided? Maybe you’re missing an argument? https://docs.python.org/3/library/stdtypes.html#range More on reddit.com
🌐 r/learnprogramming
13
0
March 8, 2023
iterate over a string in reverse
https://docs.python.org/3/library/functions.html#reversed More on reddit.com
🌐 r/learnpython
7
1
February 7, 2023
How to reverse a Python list (3 methods)
Well don't forget about doing it by hand! print(list(lst[i] for i in range(-1, -len(lst)-1, -1))) More on reddit.com
🌐 r/Python
4
0
February 19, 2022
🌐
Real Python
realpython.com › ref › builtin-functions › reversed
reversed() | Python’s Built-in Functions – Real Python
You can use the reversed() function ... ... >>> tasks = ["task1", "task2", "task3", "task4"] >>> for task in reversed(tasks): ... print("Processing", task) ... Processing task4 Processing task3 Processing task2 Processing task1 · In this example, reversed() allows you to efficiently process tasks in reverse order without altering the original list...
🌐
tutorialstonight
tutorialstonight.com › reverse-for-loop-python
Reverse for loop Python (with Examples)
Here, the range() function starts at 5 and ends at 1. The step value is -1. So, effectively it iterates over the sequence in reverse order. Another way of reversing the loop with a negative step is by using the len() function within the range() ...
🌐
W3Schools
w3schools.com › python › ref_func_reversed.asp
Python reversed() Function
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
🌐
Scaler
scaler.com › home › topics › reversed in python | python reversed() function
Reversed in Python | Python reversed() Function - Scaler Topics
July 5, 2022 - We can use the reversed function with a for a loop because it returns an iterator. In this example, we used the reversed function to get the reverse of my_string then we used it inside a for loop to print each character one by one.
🌐
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']
🌐
Python Morsels
pythonmorsels.com › looping-in-reverse
Looping in reverse - Python Morsels
May 27, 2025 - >>> colors = ["purple", "blue", "green", "pink", "red"] >>> for color in reversed(colors): ... print("I like", color) ... I like red I like pink I like green I like blue I like purple · I find reversed a lot more readable than Python's slicing syntax, but it's also more flexible. Python's slicing syntax only works on sequences, but reversed works on any reversible iterable! The reversed function works on all sequences, but it also works on some other iterables, like dictionaries:
Find elsewhere
🌐
W3Schools
w3schools.com › python › ref_list_reverse.asp
Python List reverse() Method
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
🌐
Spark By {Examples}
sparkbyexamples.com › home › python › python for loop in backwards
Python For Loop in Backwards - Spark By {Examples}
May 31, 2024 - How to print Python for loop in backwards? you can use reversed() functions to implement the loop from backward direction. Usually, Python for loop is
🌐
Codecademy
codecademy.com › article › how-to-reverse-a-list-in-python
How to Reverse a List in Python | Codecademy
Yes! You can use slicing ([::-1]), reversed(), a for loop, or recursion to reverse a list without using .reverse(). No, slicing creates a new list. The original list remains unchanged.
🌐
Real Python
realpython.com › reverse-string-python
Reverse Strings in Python: reversed(), Slicing, and More – Real Python
July 31, 2023 - The first technique you’ll use to reverse a string involves a for loop and the concatenation operator (+). With two strings as operands, this operator returns a new string that results from joining the original ones. The whole operation is known as concatenation. Note: Using .join() is the recommended approach to concatenate strings in Python. It’s clean, efficient, and Pythonic. Here’s a function that takes a string and reverses it in a loop using concatenation:
🌐
Newtum
blog.newtum.com › reverse-a-number-in-python-using-for-loop
Reverse a Number in Python Using For Loop - Newtum
October 14, 2024 - Using the print() function we display ... the first number:12356 The reverse number is = 65321 · In this example, the user enters the number 12345....
🌐
GeeksforGeeks
geeksforgeeks.org › python › backward-iteration-in-python
Backward iteration in Python - GeeksforGeeks
July 11, 2025 - a = [1, 2, 3, 4, 5] #Loop through the List # reverse order using slicing(::-1) for item in a[::-1]: print(item) # same logic written using List comprehension # [print(item) for item in a[::-1]]
🌐
Medium
medium.com › becoming-a-better-software-developer › undetstanding-python-iterators-reversed-iteration-35f1c1d16196
Understanding Python Iterators: Reversed Iteration | by Saleem Latif | Becoming a better Software Developer | Medium
May 12, 2026 - >>> numbers = [1, 2, 3, 4, 5] >>> for number in reversed(numbers): ... print(number, end=" ") 5 4 3 2 1 · In the above example, we are reverse iterating over a list of numbers using the reversed() function.
🌐
Tutorial Gateway
tutorialgateway.org › python-program-to-reverse-a-number
Python Program to Reverse a Number
April 7, 2025 - This program uses the for loop range to iterate digits in a number and reverse them. num = int(input("Enter any Number = ")) rv = 0 for i in range(len(str(num))): rv = rv * 10 + num % 10 num = num // 10 print("The Result = ", rv) ...
🌐
Tutorial Gateway
tutorialgateway.org › python-program-to-reverse-string
Python Program to Reverse a String
January 4, 2026 - For Loop First Iteration: for i in st1 => for C in Coding str2 = C + st2=> C + ” · Second Iteration: for o in Coding st2 = o + C => oC · 3rd Iteration: for d in Coding st2 = d + oC => doC · Apply the same logic for the remaining iterations.
🌐
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....
🌐
GUVI
guvi.in › blog › python › python reverse string: 7 effective ways with examples
Python Reverse String: 7 Effective Ways with Examples
January 8, 2026 - In this example, the reverse_string function takes an input string, applies the reversed() function to create an iterator, and then uses "".join() to form the reversed string. This method is straightforward and leverages Python’s powerful ...