I'm trying to reverse a tuple in different ways. Can i change the order in way (bond,james,number). I know how to change it if there are only 2 elements in tuple but how to do it when I have 3 and more? I got (number,bond,james) but how to do it in different ways, not just reversing. My code:
def change(lst):
list2 = [t[::-1] for t in lst]
list2.reverse()
return list2
print(change([("James", "Bond", "300184"),("Harry", "Prince", "111000")]))