HF RL Explorer

Write a Python script that performs exact decimal arithmetic (addition, subtraction, multiplication…

Write a Python script that performs exact decimal arithmetic (addition, subtraction, multiplication…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input CSV format: no header row. Each row has 4 columns: id (integer), date (ISO 8601 date string), description…

The task

Input CSV format: no header row. Each row has 4 columns: id (integer), date (ISO 8601 date string), description (quoted string), amount (decimal string, may have leading/trailing whitespace, may be negative with leading minus sign, may have 1 or 2 decimal digits, may have no decimal digits). Rows are separated by LF…

Part of ai-and/termgrade-environments.