title: How do I optimise this code to one loop or minimal possible
body: <p>I need to restrict this code to maximum one loop or fewer if possible:</p>
  
  <pre><code>for i in range(1,count+1):
  
    for j in range(i+1,count+1):
  
       newcount+=1
  </code></pre>
  
  <p>Basically what it does is find possible combinations without repition .</p>