質問するログイン新規登録

質問編集履歴

1

コードの修正

2018/11/20 13:32

投稿

moscow3
moscow3

スコア201

title CHANGED
File without changes
body CHANGED
@@ -11,7 +11,8 @@
11
11
  lst= ['apple','banana','orange']
12
12
  for i in range(len(lst)):
13
13
  fruits=lst[i]
14
+ print(fruits)
14
- 以下略
15
+ print(i)
15
16
  ```
16
17
 
17
18
  ```python
@@ -27,7 +28,6 @@
27
28
  ```python
28
29
  lst= ['apple','banana','orange']
29
30
  for fruits in lst:
30
- count+=1
31
31
  if {なんらかの条件}:
32
32
  print(fruits)
33
33
  print(lst.index(fruits))