質問編集履歴
3
「コードの挿入」状態に編集しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
```python
|
2
|
+
|
3
|
+
c_count = int(input())
|
2
|
-
|
4
|
+
c.list = []
|
3
5
|
for i in range(c_count):
|
4
6
|
c_list.append(input())
|
5
7
|
|
2
「コードの挿入」状態に編集しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,7 +1,5 @@
|
|
1
|
-
##このプログラムを実行すると次のエラーが発生するのはなぜですか? 教えてください
|
2
|
-
|
1
|
+
```python
|
3
|
-
c_count = int(input())
|
4
|
-
|
2
|
+
= []
|
5
3
|
for i in range(c_count):
|
6
4
|
c_list.append(input())
|
7
5
|
|
@@ -20,6 +18,11 @@
|
|
20
18
|
else:
|
21
19
|
print('NO')
|
22
20
|
|
21
|
+
```
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
23
26
|
#######発生するエラー
|
24
27
|
Runtime error
|
25
28
|
実行時エラーメッセージ
|
1
追記:「かっこが足りない」とのご指摘を受けて変更してもう一度実行してみたところまた別のエラーが発生しました。このエラーについても教えてください
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
c_count = int(input())
|
4
4
|
c_list = []
|
5
5
|
for i in range(c_count):
|
6
|
-
c_list.append(input()
|
6
|
+
c_list.append(input())
|
7
7
|
|
8
8
|
print(c_count)
|
9
9
|
print(c_list)
|
@@ -22,8 +22,8 @@
|
|
22
22
|
|
23
23
|
#######発生するエラー
|
24
24
|
Runtime error
|
25
|
-
|
25
|
+
実行時エラーメッセージ
|
26
|
-
File "Main.py", line
|
26
|
+
File "Main.py", line 9
|
27
|
-
print(
|
27
|
+
print(c_count)
|
28
|
-
|
28
|
+
^
|
29
|
-
|
29
|
+
IndentationError: unindent does not match any outer indentation level
|