Simple command-line calculator written in Python.
- Basic operations:
+,-,*,/,% - Works with float numbers
- Command system:
historyโ show calculation historyexitโ close programhelpโ show available commands
- Input validation (handles wrong input)
- Error handling (e.g. division by zero)
- Clean modular structure
python main.py
๐ก Example usage
=== CALCULATOR ===
Operations: + - * / %
Commands: history, exit, help
Enter first number: 10
Enter operator (+ - * / %): *
Enter second number: 5
Result: 50
๐ Project structure
.
โโโ main.py
โโโ README.md
๐ Future improvements
Add power operator (^)
Add full expression parsing (2 + 2 * 5)
Save history to file
GUI version
๐ค Author
Nazar Tarasiuk