回答編集履歴
2
変数名変更
test
CHANGED
@@ -6,16 +6,16 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
|
9
|
+
count = {}
|
10
10
|
|
11
11
|
for i1, i2 in zip(list1, list2):
|
12
12
|
|
13
13
|
if i1 == i2:
|
14
14
|
|
15
|
-
|
15
|
+
count[i1] = count.get(i1, 0) + 1
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
print(
|
19
|
+
print(count)
|
20
20
|
|
21
21
|
```
|
1
言語変更
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
```python
|
1
|
+
```python
|
2
2
|
|
3
3
|
list1 = ['apple','orange','banana']
|
4
4
|
|