From 5537c270647acd92d1885c25d30ff10de4a12ebb Mon Sep 17 00:00:00 2001 From: j Date: Sun, 2 Apr 2023 09:14:10 +0200 Subject: [PATCH] Update page 'Day 3 homework' --- Day 3 homework.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Day 3 homework.md b/Day 3 homework.md index 3a67710..d68979d 100644 --- a/Day 3 homework.md +++ b/Day 3 homework.md @@ -33,3 +33,4 @@ class BoundedInt(): 7. Do the same as 6, but for subtraction, to pass test 3. 8. Modify the template so it also supports adding a regular integer to a BoundedInt, to pass test 4. Note that you can use `isinstance()` to determine the class of a variable. 9. Same as 8, but for subtraction. + 10. 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`.