title: Slicing a string into a list
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/312443/how-do-you-split-a-list-into-evenly-sized-chunks-in-python">How do you split a list into evenly sized chunks in Python?</a><br>
    <a href="https://stackoverflow.com/questions/434287/what-is-the-most-pythonic-way-to-iterate-over-a-list-in-chunks">What is the most “pythonic” way to iterate over a list in chunks?</a>  </p>
  </blockquote>
  
  
  
  <p>Say I have a string </p>
  
  <pre><code>s = '1234567890ABCDEF'
  </code></pre>
  
  <p>How can I slice (or maybe split is the correct term?) this string into a list consisting of strings containing 2 characters each?</p>
  
  <pre><code>desired_result = ['12', '34', '56', '78', '90', 'AB', 'CD', 'EF']
  </code></pre>
  
  <p>Not sure if this is relevant, but I'm parsing a string of hex characters and the final result I need is a list of bytes, created from the list above (for instance, by using <code>int(desired_result[i], 16)</code>)</p>