title: Python: Permutations of 3 Elements
body: <p>How do you find all permutations of a list with 3 elements in Python?</p>
  
  <p>For example, input</p>
  
  <pre><code>[1, 2, 3, 4]
  </code></pre>
  
  <p>would return</p>
  
  <pre><code>[1, 2, 3]
  [1, 2, 4]
  [1, 3, 4]
  [2, 3, 4]
  </code></pre>
  
  <p>Thanks!</p>