title: how do i do round-robin in python 3
body: <p>i have to do a rotation of a list. I get a sorted list and i have to get minimum of pairs and maximum of tree numbers in a permutation of this sorted list as an answear. It has to have different numbers sorted from lowest to highest. For example:</p>
  
  <pre><code>MyList=[1, 1, 1, 2, 2, 2, 3, 3, 3, 3]
  </code></pre>
  
  <p>and the output must be:</p>
  
  <pre><code>1 2 3
  1 2 3
  1 3
  2 3
  </code></pre>
  
  <p>and for :</p>
  
  <pre><code>MyList=[1, 1, 1, 1, 1, 2, 3, 4, 5, 6]
  </code></pre>
  
  <p>and the output must be:</p>
  
  <pre><code>1 2
  1 3
  1 4
  1 5
  1 6
  </code></pre>
  
  <p>I saw i can do it with a method called round-robin but i don't know how. 
  Thank you for your help!</p>