回答編集履歴
3
修正
test
CHANGED
@@ -26,6 +26,6 @@
|
|
26
26
|
|
27
27
|
i = input('値を入力:')
|
28
28
|
|
29
|
-
print(double(i))
|
29
|
+
print(double(int(i)))
|
30
30
|
|
31
31
|
```
|
2
修正
test
CHANGED
@@ -18,16 +18,14 @@
|
|
18
18
|
|
19
19
|
```
|
20
20
|
|
21
|
-
def double():
|
21
|
+
def double(x):
|
22
22
|
|
23
23
|
# ter305932
|
24
24
|
|
25
|
-
x=input('値を入力:')
|
26
|
-
|
27
25
|
return x * 2
|
28
26
|
|
27
|
+
i = input('値を入力:')
|
29
28
|
|
30
|
-
|
31
|
-
print(double())
|
29
|
+
print(double(i))
|
32
30
|
|
33
31
|
```
|
1
f
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
```
|
20
20
|
|
21
|
-
def double(
|
21
|
+
def double():
|
22
22
|
|
23
23
|
# ter305932
|
24
24
|
|
@@ -28,6 +28,6 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
print(double(
|
31
|
+
print(double())
|
32
32
|
|
33
33
|
```
|