Answers for "python create pairs from list"

0

python create pairs from list

>>> for pair in itertools.combinations([1,2,3,4],2):
...    print pair
...
(1, 2)
(1, 3)
(1, 4)
(2, 3)
(2, 4)
(3, 4)
Posted by: Guest on January-11-2021

Code answers related to "python create pairs from list"

Python Answers by Framework

Browse Popular Code Answers by Language