title: How to create a list within list in python
body: <p>I need a simple task to create a list within list in Python Here is the code I have tried</p>
  
  <pre><code>data_list = []
  
  data = {'AgreementIdList': 'ABC123', 'Required': 'true'}
  
  data_list.append(data)
  
  print (data_list)
  </code></pre>
  
  <p>Actual Result: </p>
  
  <pre><code>[{'AgreementIdList': 'ABC123', 'Required': 'true'}]
  </code></pre>
  
  <p>Expected Result: </p>
  
  <pre><code>{"AgreementIdList": ["ABC123"], "Required": true}
  </code></pre>