回答編集履歴
1
修正
answer
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
from itertools import product
|
|
4
4
|
|
|
5
5
|
for elem in product(["a", "b", "c", "d", "e"], repeat=3):
|
|
6
|
-
print(elem)
|
|
6
|
+
print(*elem)
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
**実行結果** [Wandbox](https://wandbox.org/permlink/
|
|
9
|
+
**実行結果** [Wandbox](https://wandbox.org/permlink/lPCnGc7bQ5SqYe3F)
|
|
10
10
|
```
|
|
11
|
-
|
|
11
|
+
a a a
|
|
12
|
-
|
|
12
|
+
a a b
|
|
13
|
-
|
|
13
|
+
a a c
|
|
14
14
|
|
|
15
15
|
...中略...
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
e e c
|
|
18
|
-
|
|
18
|
+
e e d
|
|
19
|
-
|
|
19
|
+
e e e
|
|
20
20
|
```
|