title: Saving ord(characters) from different lines(one string) in different lists
body: <p>i just can't figure it out.
  I got a string with some lines.</p>
  
  <pre><code>qual=[abcdefg\nabcedfg\nabcdefg]
  </code></pre>
  
  <p>I want to convert my characters to the ascii value and saves those values in an other list for each line.</p>
  
  <pre><code>value=[[1,2,3,4,5,6],[1,2,3,4,5,6],[1,2,3,4,5,6]
  </code></pre>
  
  <p>But my codes saves them all in one list.</p>
  
  <pre><code>values=[1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6]
  </code></pre>
  
  <p>First of all my code:</p>
  
  <pre><code>for element in qual:
     qs = ord(element)  
     quality_code.append(qs)
  </code></pre>
  
  <p>I also tried to split() the string but the result is still the same</p>
  
  <pre><code>qual=line#[:-100]
  qually=qual.split()
    for list in qually:
      for element in list:
        qs = ord(element)
        quality.append(qs)
  </code></pre>
  
  <p>My next attempt was:</p>
  
  <pre><code>for element in qual:
    qs = ord(element)  
    quality_code.append(qs)
    for position in range(0, len(quality_code)):
      qual_liste[position].append(quality_code[position])
  </code></pre>
  
  <p>With this code an IndexError(list index out of range) occurs.
  There is probably a way with try and except but i dont get it.</p>
  
  <pre><code>for element in qual:
    qs = ord(element)  
    quality_code.append(qs)
    for position in range(0, len(quality_code)):
      try:
        qual_liste[position].append(quality_code[position])
      except IndexError:
        pass
  </code></pre>
  
  <p>With this code the qual_lists stays empty, probably because of the pass
  but i dont know what to insert instead of pass.</p>
  
  <p>Thanks a lot for help. I hope my bad english is excusable .D</p>