Implement a command-line tool /root/range tool (Python script) that accepts a single argument: a path to a…
Implement a command-line tool /root/range tool (Python script) that accepts a single argument: a path to a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input file format: - Lines starting with ADD define an interval. Format: ADD start end label - start and end…
The task
**Input file format:** - Lines starting with `ADD ` define an interval. Format: `ADD [start] [end] [label]` - `start` and `end` are integers, possibly negative. `start` is always ≤ `end`. - `label` is a non-empty string containing no spaces. - Lines starting with `QUERY ` request a range query. Format: `QUERY…
Part of ai-and/termgrade-environments.