title: make list inside list
body: <p>I want to make a list inside a list</p>
  <pre><code>def makelist(s):
          res = []
          for samp in s:
              res += list(samp.lstrip('[').rstrip(']'))
          return res
  </code></pre>
  <ul>
  <li>s = '[p[da]]'</li>
  <li>output is ['p','d','a']</li>
  <li>but I want to add list inside to make it look like this ['p'['d','a']]</li>
  </ul>