title: How do you create a translator in Python?
body: <p>What I am trying to do is make a program react with words I define to translate it into a language, or in my case, letters.</p>
  
  <p>This would be an example of what I want:</p>
  
  <p>I type in "Woof" per say. I want it to be able to understand what I say when I type woof, and print a letter with it.</p>
  
  <p>So let's say "Woof" is the letter "A"
  And let's say "Arf bark" is the letter "B"</p>
  
  <p>I've had no luck finding how to be able to input say "Woof arf bark" and get it to print "AB" </p>
  
  <p>My end goal is to be able to translate words with my own little translator using my own defined language by simply inputing words.</p>
  
  <p>What I'm looking for in a response is simply an example of inputing a defined word and receiving a letter or something in response.</p>
  
  <p>Long story-short; I am basically looking for a translator</p>
  
  <hr>
  
  <p><strong>Edit:</strong> Imagine Google Translate, you type in a word or a series of letters or whatever be the case, and it becomes translated.
  I'm looking for it to be able to UNDERSTAND INPUT. So If I copy and paste the made up language, the IDE should be able to give me a translation of it.</p>
  
  <p><strong>Better Example:</strong> Let's say H is defined as "8" because it is the 8th letter in the alphabet, and A is defined as "1" due to being the first letter in the alphabet.
  How do I write a program that allows me to input "8181" and have it translated to say "Haha"</p>