HF RL Explorer

Write a command-line tool /root/fixcalc.py that reads a text file and performs fixed-point arithmetic…

Write a command-line tool /root/fixcalc.py that reads a text file and performs fixed-point arithmetic…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: The program accepts exactly one argument: a path to a text file. The file contains one or more…

The task

**Input format:** The program accepts exactly one argument: a path to a text file. The file contains one or more lines. Each line is either: - A number literal (decimal fixed-point with up to 4 fractional digits, no scientific notation, no thousands separators) - An operation word followed by a number on the same line

Part of ai-and/termgrade-environments.