質問編集履歴

2

修正致しました。

2018/08/03 11:48

投稿

NaokiHirose
NaokiHirose

スコア9

test CHANGED
File without changes
test CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  list2 = []
22
22
 
23
- for j in range(len(list1)):
23
+ for j in range(len(list1)):
24
24
 
25
25
  if len(list1[j])>= 3:
26
26
 
@@ -32,7 +32,9 @@
32
32
 
33
33
  ```
34
34
 
35
- ```
35
+
36
+
37
+
36
38
 
37
39
  【正解】
38
40
 

1

潰れていたインデントを修正致しました。

2018/08/03 11:48

投稿

NaokiHirose
NaokiHirose

スコア9

test CHANGED
File without changes
test CHANGED
@@ -8,31 +8,7 @@
8
8
 
9
9
  【間違い】
10
10
 
11
- def collect_engwords(str_engsentences):
11
+ ```def collect_engwords(str_engsentences):
12
-
13
- list_punctuation = [".", ",", ":", ";", "!", "?"]
14
-
15
- for j in range (len(list_punctuation)):
16
-
17
- str_engsentences = str_engsentences.replace(list_punctuation[j],"")
18
-
19
- list1 = str_engsentences.split(" ")
20
-
21
- list2 = []
22
-
23
- for j in range(len(list1)):
24
-
25
- if len(list1[j])>= 3:
26
-
27
- list2.append(list1[j])
28
-
29
- return list2
30
-
31
-
32
-
33
- 【正解】
34
-
35
- def collect_engwords(str_engsentences):
36
12
 
37
13
  list_punctuation = [".", ",", ":", ";", "!", "?"]
38
14
 
@@ -52,6 +28,38 @@
52
28
 
53
29
  return list2
54
30
 
31
+ コード
32
+
33
+ ```
34
+
35
+ ```
36
+
37
+ 【正解】
38
+
39
+ ```def collect_engwords(str_engsentences):
40
+
41
+ list_punctuation = [".", ",", ":", ";", "!", "?"]
42
+
43
+ for j in range (len(list_punctuation)):
44
+
45
+ str_engsentences = str_engsentences.replace(list_punctuation[j],"")
46
+
47
+ list1 = str_engsentences.split(" ")
48
+
49
+ list2 = []
50
+
51
+ for j in range(len(list1)):
52
+
53
+ if len(list1[j])>= 3:
54
+
55
+ list2.append(list1[j])
56
+
57
+ return list2
58
+
59
+ コード
60
+
61
+ ```
62
+
55
63
 
56
64
 
57
65