I'm trying to change the the position of the elements of a python list according to an array which tells where each element must be placed.
For example consider a list ["a","b","c"]
,
for these array values [2,0,1]
=> the element at index position 0 (a) must go to index position 2,
element at index position 1 (b) go to index position 0
and element at index position 2 go to index position 1.
The expected list should look like this ["b","c","a"]
,