I want to create a function that would create n different tuples of an n-element tuple and append them to a list:
for n=2 I could simply use:
def change_order(tuple):
tup = tuple[::-1]
return tup
And I would append both tuples to a list But for bigger tuples, this function is not valid anymore. I would want to get for example when n=3:
(1,2,3)-->[(1,2,3),(3,1,2),(2,3,1)]
Basically each element moves one place to the right.
Can someone help me with this?