harbor run -t openthoughts/tasktrove-exp-rpt-curriculum-medium-curriculum-medium-0116harbor download openthoughts/tasktrove-exp-rpt-curriculum-medium-curriculum-medium-0116Task overview: Create a self-contained Python module that defines a Section class modeling a closed integer interval. The implementation should be importable as a standard Python module named section (i.e., the file should be /app/section.py and tests will import via import section; the class will be accessible as section.Section).
Requirements (core behavior):
Location: /app/section.py
Class and exposure:
Constructor: Section(a, b)
toString(self) -> str
num_in(self, x) -> bool
equal(self, other) -> bool
Edge cases to consider (moderate depth):
Hints (to guide implementation without giving away a full solution):
Implementation notes:
Acceptance criteria: