回答編集履歴
1
修正
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
lst = [i for i in lst if isinstance(i, str)] # 文字列のみ
|
8
8
|
|
9
|
-
cnt = len(lst)
|
9
|
+
cnt = len(lst) # 個数
|
10
10
|
|
11
11
|
print(cnt)
|
12
12
|
|
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
lst = [i for i in lst if i == 'FREE' or 'X' in i] # FREE or X
|
24
24
|
|
25
|
-
cnt = len(lst)
|
25
|
+
cnt = len(lst) # 個数
|
26
26
|
|
27
27
|
print(cnt)
|
28
28
|
|