Skip to content

Commit 502374f

Browse files
authored
Create 6.py
1 parent b5a0cc5 commit 502374f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

20/6.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.permutations(data, 2):
6+
print(list(x), end=' ')

0 commit comments

Comments
 (0)