title: python list permutations
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/104420/how-to-generate-all-permutations-of-a-list-in-python">How to generate all permutations of a list in Python</a>  </p>
  </blockquote>
  
  
  
  <p>I am given a list <code>[1,2,3]</code> and the task is to create all the possible permutations of this list.</p>
  
  <p>Expected output:</p>
  
  <pre><code>[[1, 2, 3], [1, 3, 2], [2, 3, 1], [2, 1, 3], [3, 1, 2], [3, 2, 1]]
  </code></pre>
  
  <p>I can't even think from where to begin. Can anyone help?</p>
  
  <p>Thanks</p>