Reverse the following tuple aTuple = (10, 20, 30, 40, 50) in Python

 Expected output:

(50, 40, 30, 20, 10)
Code :
aTuple = (10, 20, 30, 40, 50)
r=reversed(aTuple)
print(tuple(r))# tuple() used for convert a variable into Tuple

Comments