Tirsvad 5e1067b4f3 Add calculator core: constants, operations and tests
MIL-002 Calculator core.

- Add constants.py with operation symbols, answers, prompts, messages
  and the ASCII title and calculator
- Add add, subtract, multiply and divide, and the OPERATIONS dictionary
  that maps each symbol to its function without calling it
- Add tests for each operation, division by zero and the dictionary

Closes #19
Closes #20
Closes #21

Task: MIL-002#1
Task: MIL-002#2
Task: MIL-002#3
2026-10-04 20:49:38 +08:00
2026-10-04 12:17:07 +02:00
2026-10-04 12:17:07 +02:00
S
Description
Console calculator in Python 3.13+ with ASCII art: operations stored in a dictionary of functions, continue with the previous result or restart via recursion. Udemy 100 Days of Code, day 10.
Readme AGPL-3.0
83 KiB
Languages
Python 100%