I'm trying to write a function that would input a list (of pre-determined length) and output the permutation of that list according to my choice of re-ordering.
For example, suppose I have the list
[1,'a',12,'b','poppy']
and I have the permutation
(3,4,5,2,1)
Then the function output would be a list with the third element first, the fourth element second, etc
[12,'b','poppy','a',1]
indexing is 0 based so if you actually wanted to use the indexes for a 5 element list it would be
(2,3,4,1,0)
and[l[i] for i in t]