title: how to use list compheresion with method .index()
body: <p>how to sorted this between list index and string?</p>
  <pre><code>def shuffle(plain_txt,mylist):
      return ''.join([plain_txt[i] for i in mylist])
       
      
  def resorting(shuffle_txt,mylist):
      return shuffle(shuffle_txt, [mylist.index(0)])
  
  print(shuffle('abcd',[2,1,3,0]))
  print(resorting('cbda',[2,1,3,0]))
  </code></pre>
  <p>the first shuffle function it will make shuffle string according to the list, example (str) abcde: (list) [0,4,3,2,1] then the output is aedcb, so i made the function resorting which will return the string sequence back to before it was shuffle.</p>