title: how to parse a list or string into chunks of fixed length
body: <p>I'm really stuck on a basic question. I am trying to take a list of one item and divide it into a list of many items each with a charater length of 10. For example give a list with one item, <code>['111111111122222222223333333333']</code>, the output would produce:</p>
  
  <pre><code>1111111111
  2222222222
  3333333333
  </code></pre>
  
  <p>I feel like this is super simple, but I'm stumped. I tried to create a function like this:</p>
  
  <pre><code>def parser(nub):    
      while len(nub) &gt; 10:  
          for subnub in nub:  
              subnub = nub[::10]
              return(subnub)  
      else:  
          print('Done')
  </code></pre>
  
  <p>Obviously, this doesn't work. Any advice? Would using a string be easier than a list?</p>