I have a dictionary
example: A = {1:'one',2:'two' , 3: 'three}
so what I want is basically like a 2 for loops sort of stuff..
so that I can get the following order..
# 1 2
# 1 3
# 2 3
... and so on if more elements are there
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..
for key in A.keys():
# how do i Access all the other keys..
# do something
Thanks
1 Answer