title: Find string list inside text that have assigned to new values Python
body: <p>I'm new to python (I started learning just last week). I'm trying to write a python script that does the following:
  1- insert a text, e.g., 'Hello world!' (or larger text from a file)
  2- create a list of all English alphabets (or alphabets of any other language), in which each letter is assigned to a new string value, e.g., the letter k = 'cv-'.
  3- then write a statement like: if 'h' exists in the text, print out its assigned new string (from step 2).
  4- the final output could be something like this: cv-cvv-cv (for each word in the text).</p>
  
  <p>To summarize, I have 'a' (the text), 'b' (the list of the alphabets), 'c' (the new value of each alphabet), 'd' (the code, if statement or something similar), 'e', the output (something like cv-cvc-cv ..ete). </p>
  
  <p>Run a, then using d, which goes though b and c, to give e.</p>
  
  <p>Here is my attempt (without luck, of course). I'd appreciate any guidance and help.  </p>
  
  <pre><code>text = 'a test'
  letters = ['a', 't', 'e', 's']
  
  if letters in text:
   print (a_val, t_val, e_val, s_val)
  
  </code></pre>