title: Converting all letters in a document from one list to another in Python
body: <p>I have two lists</p>
  
  <pre><code>list1 = ['a', 'b', 'c']
  list2 = ['d', 'e', 'f']
  </code></pre>
  
  <p>I have a variable with random text in it.</p>
  
  <p><code>var = 'backout'</code></p>
  
  <p>I want to convert all letters in the variable that exist in list1 to the letters in list2.</p>
  
  <p><code>expectedOutput = 'edfkout'</code></p>
  
  <p>Is there a way to do this?</p>