In this tutorial, I will explain how to reverse a tuple in Python. Tuples are immutable sequences in Python, meaning their elements cannot be modified once the tuple is created. However, there are several ways to reverse the order of elements in a tuple. Let me show you different methods to reverse a tuple in Python with examples.
Tuples in Python
Let me explain first what is tuples in Python. A tuple is an ordered, immutable collection of elements in Python. It is defined using parentheses () and can contain elements of different data types. Here’s an example of a tuple:
person = ("John", "Doe", 28, "New York")In this example, we have a tuple called person that contains a first name, last name, age, and city.
Now, let me show you various methods to reverse a tuple in Python.
Reverse a Tuple Using Slicing
One of the best ways to reverse a tuple in Python is by using slicing. Slicing allows us to extract a portion of a tuple or reverse its order. To reverse a tuple using slicing, we can use the following syntax:
reversed_tuple = original_tuple[::-1]Here’s an example:
fruits = ("apple", "banana", "orange", "grape")
reversed_fruits = fruits[::-1]
print(reversed_fruits)Output:
('grape', 'orange', 'banana', 'apple')In this example, we have a tuple fruits containing various fruit names. By using slicing with [::-1], we create a new tuple reversed_fruits with the elements in reverse order.
I executed the above Python code, and you can see the exact output in the screenshot below:

Check out Create a Python Tuple with One Element
Reverse a Tuple Using the reversed() Function
Another way to reverse a tuple is by using the built-in reversed() function in Python. The reversed() function returns an iterator that allows us to iterate over the elements of a sequence in reverse order. Here’s how we can use it to reverse a tuple:
states = ("California", "Texas", "Florida", "New York")
reversed_states = tuple(reversed(states))
print(reversed_states)Output:
('New York', 'Florida', 'Texas', 'California')In this example, we have a tuple states containing names of U.S. states. We pass the states tuple to the reversed() function, which returns an iterator. To convert the iterator back to a tuple, we use the tuple() function. The resulting reversed_states tuple contains the elements in reverse order.
Here is another example, and you can see the exact output in the screenshot below:

Read Get the First Element of a Tuple in Python
Reversing a Tuple by Converting to a List
Since tuples are immutable, we cannot modify them directly. However, we can convert a tuple to a list, reverse the list, and then convert it back to a tuple. Here’s how it works:
cities = ("Los Angeles", "Chicago", "Houston", "Phoenix")
reversed_cities = tuple(reversed(list(cities)))
print(reversed_cities)Output:
('Phoenix', 'Houston', 'Chicago', 'Los Angeles')In this example, we have a tuple cities containing names of U.S. cities. We first convert the tuple to a list using the list() function. Then, we apply the reversed() function to the list to reverse its order. Finally, we convert the reversed list back to a tuple using the tuple() function. The resulting reversed_cities tuple contains the elements in reverse order.
Read Access Tuple Elements in Python
Practical Example: Reverse a Tuple of Employee Data
Now, let me show you a practical example of reversing a tuple in Python.
Suppose you have a tuple containing employee data, and you want to reverse the order of the employees based on their years of experience. Here’s how you can achieve that:
employees = (
("Alice Johnson", 5),
("Bob Smith", 3),
("Charlie Brown", 7),
("David Lee", 2)
)
reversed_employees = tuple(reversed(employees))
print(reversed_employees)Output:
(('David Lee', 2), ('Charlie Brown', 7), ('Bob Smith', 3), ('Alice Johnson', 5))In this example, we have a tuple employees containing tuples of employee names and their years of experience. By applying the reversed() function to the employees tuple, we reverse the order of the employee data. The resulting reversed_employees tuple contains the employee data in reverse order.
Here is the exact output in the screenshot below:

Conclusion
In this tutorial, we explored different ways to reverse a tuple in Python. We learned how to use slicing, the reversed() function, and converting a tuple to a list to achieve the desired result. Reversing a tuple can be useful in various scenarios, such as reversing the order of elements for specific processing, etc.
I hope these examples will be helpful.
You may also like:
- How to Print a Tuple in Python?
- How to Check if a Tuple is Empty in Python?
- How to Pass a Tuple as an Argument to a Function in Python?
- How to Split a Tuple in Python?

I am Bijay Kumar, a Microsoft MVP in SharePoint. Apart from SharePoint, I started working on Python, Machine learning, and artificial intelligence for the last 5 years. During this time I got expertise in various Python libraries also like Tkinter, Pandas, NumPy, Turtle, Django, Matplotlib, Tensorflow, Scipy, Scikit-Learn, etc… for various clients in the United States, Canada, the United Kingdom, Australia, New Zealand, etc. Check out my profile.