Skip to content

Commit 5334170

Browse files
authored
Create 7.py
1 parent 502374f commit 5334170

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

20/7.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import itertools
2+
3+
data = [1, 2, 3]
4+
5+
for x in itertools.combinations(data, 2):
6+
print(list(x), end=' ')

0 commit comments

Comments
 (0)