How 0nrr/python-calculator works
This is a small interactive terminal calculator. The user selects an arithmetic operation, enters two values, and sees the result in colored output; integer or float conversion is chosen by checking for decimal points. The runtime is contained in one script, so the graph keeps the input loop, operation handling, and presentation together rather than implying separate modules. Evidence is limited to the README and the sole sampled source file.
Main entry points: python-calculator.py Interactive calculator
Components 4
Calculator runtime
- Interactive calculator
python-calculator.py - Arithmetic operations
python-calculator.py
Other components
- Terminal user
- Terminal output
Connections 3
- Terminal user → Interactive calculator: enters choices and values
python-calculator.py - Interactive calculator → Arithmetic operations: dispatches operation
python-calculator.py - Interactive calculator → Terminal output: prints menu and results
python-calculator.py