title: Storing the output of a for loop through each iteration
body: <p>I'm trying to save the output of my for loop for each iteration...for example, here is my code: </p>
  
  <pre><code>def encrypt(key):
   for char in (key):
    val = (ord(char)) - (96)
  </code></pre>
  
  <p>for example, if someone entered "lol" through the interpreter my program outputs...</p>
  
  <pre><code>encrypt("lol")
  12
  15
  12
  </code></pre>
  
  <p>In this example, I need to store 12,15,12 in memory for use in another function... can anyone help?.</p>