回答編集履歴

1

追記

2018/06/28 15:08

投稿

LouiS0616
LouiS0616

スコア35660

test CHANGED
@@ -22,6 +22,22 @@
22
22
 
23
23
  c
24
24
 
25
+ >>>
26
+
27
+ >>> for datum in data:
28
+
29
+ ... print(data[datum])
30
+
31
+ ...
32
+
33
+ Traceback (most recent call last):
34
+
35
+ File "<stdin>", line 2, in <module>
36
+
37
+ TypeError: list indices must be integers or slices, not str
38
+
39
+ >>>
40
+
25
41
  >>> for i in range(len(data)):
26
42
 
27
43
  ... print(data[i])