From ec9dcc54a62b5195cd27b41c9d0fe4869f2edc81 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 2 Apr 2023 08:48:26 +0200 Subject: [PATCH] Update page 'Day 3 homework' --- Day 3 homework.md | 1 - 1 file changed, 1 deletion(-) diff --git a/Day 3 homework.md b/Day 3 homework.md index 44119f1..c7dd7a5 100644 --- a/Day 3 homework.md +++ b/Day 3 homework.md @@ -26,7 +26,6 @@ class BoundedInt(): Modify the template to pass test 1, which checks that `int()` called on your class will return the value of `i`. 2. Read this, and the paragraph below it: https://docs.python.org/3/reference/datamodel.html?highlight=__int__#object.__add__ What do you think the types of x and y are? Guess, without checking first. What are they, actually? You can use the debugger's local window to find out. - 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.