title: how to shift a string to right and reverse it in python?
body: <p>Shift word to right and then reverse it.</p>
  
  <p>You should take a word shift to right and reverse it then return as follows:</p>
  
  <pre><code>&gt;&gt;&gt; shift_reverse('Introduction to Computer Programming')
  gnimmargorP noitcudortnI ot retupmoC
  </code></pre>
  
  <p>I tried using this method to find the above answer but it doesnt seem to work
  Please help :(</p>
  
  <pre><code>s= "I Me You"
  def shift_reverse(s):
      l= s.split()
      new_str= ' '.join(l[-1:] + l[:-1])
      new_str = new_str[::-1]
      return (new_str)
  
  print (shift_reverse(s))
  </code></pre>
  
  <p>but the print i get is</p>
  
  <pre><code>[evaluate untitled-3.py]
  eM I uoY
  </code></pre>