title: Randomly selecting a different pair of items from a list
body: <p><strong>Code:</strong></p>
  
  <pre><code>import random
  
  x = ['A','B','C','D','E','F',
       'G','H','I','J','K','L',
       'M','N','O','P','Q','R',
       'S','T','U','V','W','X',
       'Y','Z']
  
  y1 = random.sample(x, 2)
  y2 = random.sample(x, 2)
  y3 = random.sample(x, 2)
  y4 = random.sample(x, 2)
  y5 = random.sample(x, 2)
  </code></pre>
  
  <p><strong>Query</strong></p>
  
  <p>As shown above, I'm selecting 5 random sample combinations and declaring them under the variables <code>y'x'</code>.</p>
  
  <p>To improve my code, I would like to do so, but ensure that an item from the list doesn't appear more than once in all variable outputs, in which all combinations are different and non-repetitive. I would preferably like to achieve this without having to remove items from the list as it is reused later in the code.</p>
  
  <p><strong><em>Expected Output (Example):</em></strong></p>
  
  <pre><code>&gt;&gt;&gt; y1
  ['A', 'Q']
  &gt;&gt;&gt; y2
  ['E', 'K']
  &gt;&gt;&gt; y3
  ['C', 'O']
  &gt;&gt;&gt; y4
  ['Z', 'X']
  &gt;&gt;&gt; y5
  ['P', 'L']
  </code></pre>