title: Reverse alphabet
body: <p>I’m trying to modify a piece of text to apply the following translation:</p>
  
  <pre><code>before: abcdefghijqlmnopqrstuvwxyz
  after:  zyxwvutsrqponmlkjihgfedcba
  </code></pre>
  
  <p>That is, each <code>a</code> becomes a <code>z</code>; each <code>b</code> becomes a <code>y</code>; each <code>c</code> becomes a <code>x</code>; and so on.</p>
  
  <p>My script :</p>
  
  <pre><code>myInput = input("Entrer une chaine de caracteres:\n\n")
  myInputSansEspace = myInput.replace(" ", "")
  
  myInputAsciiInverse = myInputSansEspace.replace("a","z").replace("b","y").replace("c","x").replace("d","w").replace("e","v").replace("f","u").replace("g","t").replace("h","s").replace("i","r").replace("j","q").replace("k","p").replace("l","o").replace("m","n").replace("n","m").replace("o","l").replace("p","k").replace("q","j").replace("r","i").replace("s","h").replace("t","g").replace("u","f").replace("v","e").replace("w","d").replace("x","c").replace("y","b").replace("z","a")
  
  print(myInputAsciiInverse)
  </code></pre>
  
  <p>Unfortunately it doesn’t work. For example if I write:</p>
  
  <blockquote>
    <p>i am noob</p>
  </blockquote>
  
  <p>The return should be be:</p>
  
  <blockquote>
    <p>rznmlly</p>
  </blockquote>
  
  <p>Because <code>i</code> gets replaced by <code>r</code>; <code>a</code> by <code>z</code>; <code>m</code> by <code>n</code>; etc.</p>
  
  <p>The result I get is:</p>
  
  <blockquote>
    <p>boonmai</p>
  </blockquote>