質問編集履歴
1
空白行の削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,31 +14,31 @@
|
|
14
14
|
|
15
15
|
TypeError Traceback (most recent call last)
|
16
16
|
|
17
|
-
<ipython-input-1
|
17
|
+
<ipython-input-14-0dd0a35e18e1> in <module>()
|
18
18
|
|
19
|
-
|
19
|
+
20
|
20
20
|
|
21
|
-
|
21
|
+
21
|
22
22
|
|
23
|
-
--->
|
23
|
+
---> 22 circle_area=circle_area_function(radius) #円の面積
|
24
24
|
|
25
|
-
|
25
|
+
23 triangle_area=triangle_area_function(bottom,height) #三角形の面積
|
26
26
|
|
27
|
-
|
27
|
+
24
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
<ipython-input-1
|
31
|
+
<ipython-input-14-0dd0a35e18e1> in circle_area_function(radius)
|
32
32
|
|
33
|
-
|
33
|
+
3
|
34
34
|
|
35
|
-
1
|
35
|
+
4 PI=3.14
|
36
36
|
|
37
|
-
--->
|
37
|
+
----> 5 circle_area=radius*radius*PI
|
38
38
|
|
39
|
-
|
39
|
+
6 return(circle_area)
|
40
40
|
|
41
|
-
|
41
|
+
7
|
42
42
|
|
43
43
|
|
44
44
|
|
@@ -46,45 +46,15 @@
|
|
46
46
|
|
47
47
|
|
48
48
|
|
49
|
-
|
50
|
-
|
51
49
|
### 該当のソースコード
|
52
50
|
|
53
51
|
|
54
52
|
|
55
|
-
|
53
|
+
|
56
54
|
|
57
55
|
def circle_area_function(radius): #円の面積を求める関数
|
58
56
|
|
59
|
-
|
57
|
+
|
60
|
-
|
61
|
-
半径を入力すると、円の面積を返します
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
Parameters
|
66
|
-
|
67
|
-
----------
|
68
|
-
|
69
|
-
radius
|
70
|
-
|
71
|
-
半径
|
72
|
-
|
73
|
-
PI
|
74
|
-
|
75
|
-
円周率
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
Returns
|
80
|
-
|
81
|
-
---------
|
82
|
-
|
83
|
-
circle_area
|
84
|
-
|
85
|
-
円の面積
|
86
|
-
|
87
|
-
"""
|
88
58
|
|
89
59
|
PI=3.14
|
90
60
|
|
@@ -96,35 +66,9 @@
|
|
96
66
|
|
97
67
|
def triangle_area_function(bottom,height): #三角形の面積を求める関数
|
98
68
|
|
99
|
-
|
69
|
+
|
100
70
|
|
101
|
-
|
71
|
+
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
Parameters
|
106
|
-
|
107
|
-
----------
|
108
|
-
|
109
|
-
bottom
|
110
|
-
|
111
|
-
底辺
|
112
|
-
|
113
|
-
height
|
114
|
-
|
115
|
-
高さ
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
Returns
|
120
|
-
|
121
|
-
---------
|
122
|
-
|
123
|
-
triangle_area
|
124
|
-
|
125
|
-
三角形の面積
|
126
|
-
|
127
|
-
"""
|
128
72
|
|
129
73
|
triangle_area=(bottom*height)/2
|
130
74
|
|