title: iterating in a dictionary.. (double iteration) python
body: <p>I have a dictionary </p>
  
  <pre><code>example: A = {1:'one',2:'two' , 3: 'three}
  </code></pre>
  
  <p>so what I want is basically like a 2 for loops sort of stuff..
  so that I can get the following order..</p>
  
  <pre><code># 1 2
  # 1 3
  # 2 3
  ... and so on if more elements are there
  </code></pre>
  
  <p>so basically that o(n2) operation.. where we have a loop withing a loop
  how do we achieve this in python dictionary.
  I am having a hard time figuring that out..</p>
  
  <pre><code>for key in A.keys():
        # how do i Access all the other keys.. 
             # do something
  </code></pre>
  
  <p>Thanks</p>