回答編集履歴

1

質問の変更に伴うコード修正

2018/09/25 23:27

投稿

magichan
magichan

スコア15898

test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- ```
7
+ ```Python
8
8
 
9
9
  import itertools
10
10
 
@@ -12,8 +12,8 @@
12
12
 
13
13
 
14
14
 
15
- lst = ["a","b","c","d","e","f","g","h","i","j"]
15
+ sentence = ["I","can","not","understand","deep","learning"]
16
16
 
17
- ret = random.choice(list(itertools.combinations(lst, 3)))
17
+ ret = random.choice(list(itertools.combinations(sentence, 3)))
18
18
 
19
19
  ```