'''Question: 
Write a Python program to reverse a tuple.
'''

# Python code: 

>>> #create a tuple

>>> x = ("w3resource")

>>> # Reversed the tuple

>>> y = reversed(x)

>>> print(tuple(y))

>>> #create another tuple

>>> x = (5, 10, 15, 20)

>>> # Reversed the tuple

>>> y = reversed(x)

>>> print(tuple(y))



'''Output sample: 
('e', 'c', 'r', 'u', 'o', 's', 'e', 'r', '3', 'w')                                                            

(20, 15, 10, 5) 

'''