title: How to move the last letter of a string to the front?
body: <p>I'm doing the challenge in groklearning but I can't seem to figure out how to do this.</p>
  
  <p>My program needs to do a few things:</p>
  
  <ol>
  <li>Check if word ends in ay, if it does:</li>
  <li>Remove the ay from the end of the word</li>
  <li>Move the (now) last letter to the front of the word.</li>
  <li>Print out the new word.</li>
  </ol>
  
  <p>I don't know how to move the letter to the front. This is my code so far:</p>
  
  <pre><code>word = input('Word: ') 
  if 'ay' in word:
    word1 = word[-1] + word[:-1]
    word2 = word1[2:]
    word3 = word2[-1] + word2[:-1] 
    print(word3)
  else:
    print(word)
  </code></pre>
  
  <p>If I were to type in 'athsmay' for the input, it sends out 'athsm'. Thanks in advance!</p>