From 48170c378bfd7ae6aee80835922702faee21bcf3 Mon Sep 17 00:00:00 2001 From: "xuanyi.wang" Date: Mon, 3 Apr 2023 20:59:14 +0200 Subject: [PATCH] Update page 'Day 3 homework - Sloetjes' --- Day 3 homework - Sloetjes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Day 3 homework - Sloetjes.md b/Day 3 homework - Sloetjes.md index c55e284..92c5118 100644 --- a/Day 3 homework - Sloetjes.md +++ b/Day 3 homework - Sloetjes.md @@ -117,7 +117,7 @@ class BoundedInt(): return BoundedInt(result, self.min, self.max) ``` -**7. You don't have to implement the code, but think about how you would change the template so it could allow adding a BoundedInt to an emoji, if there was a hypothetical function sentiment(emoji) which returned a floating point number from -10.0 to 10.0 which indicated whether the emoji was happy or sad. e.g. BoundedInt(1, min = 1, max = 10) + 😁 would raise `ValueError`.** +**7. You don't have to implement the code, but think about how you would change the template so it could allow adding a BoundedInt to an emoji, if there was a hypothetical function `sentiment(emoji)` which returned a floating point number from -10.0 to 10.0 which indicated whether the emoji was happy or sad. e.g. BoundedInt(1, min = 1, max = 10) + 😁 would raise `ValueError`.** ``` class BoundedInt():