HF RL Explorer

Goal: Create a fixed-point decimal arithmetic calculator

Goal: Create a fixed-point decimal arithmetic calculator: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Write a command-line tool /app/calc (Python script) that reads a single arithmetic expression from stdin and prints the result to stdout, followed by a newline.

The task

Write a command-line tool `/app/calc` (Python script) that reads a single arithmetic expression from stdin and prints the result to stdout, followed by a newline.

Part of ai-and/termgrade-environments.