title: How do I convert a Python list of integers into a list of lists?
body: <p>I have a list of elements like this: </p>
  
  <pre><code>[1,2,3,4]
  </code></pre>
  
  <p>I need to convert them to a list of list since the output like this:</p>
  
  <pre><code>[[1],[2],[3],[4]]
  </code></pre>
  
  <p>I have searched for some answers using the <code>map</code> function or using the <code>list</code> keyword but it's throwing an error saying the integer is not iterable.</p>
  
  <p>Any suggestions on how to do this?</p>