title: unable to break a list with finite size
body: <p>I have a list with letters:</p>
  
  <pre><code>list1 = [abcdefghijk]
  </code></pre>
  
  <p>I have <code>num = 3</code> and want to break <code>list1</code> in parts of 3, i.e:</p>
  
  <pre><code>[[abc], [def], [ghi], [jk]]
  </code></pre>
  
  <p>My code is:</p>
  
  <pre><code>for i in range(0, len(list1), num):
      chunks = [list1[i:i+num]]
  </code></pre>
  
  <p>I get wrong output:</p>
  
  <pre><code>chunks = ['k']
  </code></pre>
  
  <p>But I expect:</p>
  
  <pre><code>chunks = [[abc],[def],[ghi],[jk]]
  </code></pre>
  
  <p>I have gone through all the available solutions here. But they did not help. How should I fix this?</p>