回答編集履歴

1

注意事項を追加

2020/03/29 07:47

投稿

mit0223
mit0223

スコア3401

test CHANGED
@@ -15,3 +15,13 @@
15
15
  ...
16
16
 
17
17
  ```
18
+
19
+ ただし、cost_per_pond が 0 のときも False として評価されるので、注意が必要です。
20
+
21
+ ```python
22
+
23
+ if cost_per_pond and cost_per_pond < 2.0:
24
+
25
+ ```
26
+
27
+ は、cost_per_pond が 0 のとき、真になりません。