A command-line calculator developed in Python. This project focuses on reinforcing fundamental programming concepts such as functions, conditionals, loops, and user input handling.
- Addition
- Subtraction
- Multiplication
- Division (with zero division handling)
- Exponentiation
- Square root calculation
- Colored output in terminal
- Option to repeat calculations
- Python 3
- Standard library (
mathmodule)
This project was developed based on the knowledge acquired from the Python course by Curso em Vídeo.
Concepts practiced during development:
- Function definition and execution
- User input handling (
input) - Conditional structures (
if,elif,else) - Looping and repetition control
- Basic error handling
- Output formatting in the terminal
- Clone this repository:
git clone https://github.com/your-username/calculator-v1.2.git- Navigate to the project folder:
cd calculator-v1.2- Run the program:
python calculator.pyEnter a number: 10
Enter another number: 2
Choose the calculation:
1) +
2) -
3) x
4) ÷
5) x^x
6) sqrt
: 1
Result: 12
This is a beginner-level project focused on reinforcing core Python concepts. Future improvements may include code refactoring, improved structure, and graphical user interface implementation.
Pedro Gaudencio