From 7d4de16ca2e2138e7e97ad34057846c2eef5497a Mon Sep 17 00:00:00 2001 From: j Date: Sun, 2 Apr 2023 08:56:57 +0200 Subject: [PATCH] Update page 'Day 3 homework' --- Day 3 homework.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Day 3 homework.md b/Day 3 homework.md index 3bfb230..3a67710 100644 --- a/Day 3 homework.md +++ b/Day 3 homework.md @@ -29,7 +29,7 @@ class BoundedInt(): 5. Don't forget that you can access the value of a BoundedInt by using either `.i` on it, or `int()`, now that you've passed test 1. 6. Modify the template to pass test 2, which checks that: * Your class implements the + operator. - * It throws ValueError when attempting to add two BoundedInts that will exceed the limits. + * It throws ValueError when attempting to add another BoundedInt that would exceed `self.max`. 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.