Write a Python script /app/decode.py that reads a binary file specified as the first command-line argument…
Write a Python script /app/decode.py that reads a binary file specified as the first command-line argument…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: The binary file consists of a sequence of records. Each record has the structure: - Tag: 1…
The task
**Input format:** The binary file consists of a sequence of records. Each record has the structure: - **Tag:** 1 byte (unsigned integer 0-255) - **Length:** LEB128-encoded unsigned integer (variable length, up to 5 bytes) - **Value:** exactly `Length` bytes
Part of ai-and/termgrade-environments.