Update page 'Day 3 homework - Sloetjes'
@@ -91,7 +91,7 @@ class BoundedInt:
|
|||||||
return str(self.i)
|
return str(self.i)
|
||||||
```
|
```
|
||||||
|
|
||||||
**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.**
|
**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.**
|
||||||
```
|
```
|
||||||
class BoundedInt():
|
class BoundedInt():
|
||||||
def __init__(self, i, min, max):
|
def __init__(self, i, min, max):
|
||||||
|
|||||||
Reference in New Issue
Block a user