I have a dictionary
Example: dict = {'one':1 ,'two':2 , 'three':3}
I want to use/have two values within single iteration of for loop. End result should be like this
# 1 2 (First iteration)
# 1 3 (Second iteration)
# 2 1
# 2 3
# 3 1
# 3 2
Can someone please tell how I can achieve this in python dictionary.
for i in dict.values():
# how do i Access two values in single iteration and to have result like mentioned above
Thanks