Skip to content

PedroSilva370/calculator-v1.2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Calculator v1.2

A command-line calculator developed in Python. This project focuses on reinforcing fundamental programming concepts such as functions, conditionals, loops, and user input handling.


Features

  • Addition
  • Subtraction
  • Multiplication
  • Division (with zero division handling)
  • Exponentiation
  • Square root calculation
  • Colored output in terminal
  • Option to repeat calculations

Technologies Used

  • Python 3
  • Standard library (math module)

What I Learned

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

How to Run

  1. Clone this repository:
git clone https://github.com/your-username/calculator-v1.2.git
  1. Navigate to the project folder:
cd calculator-v1.2
  1. Run the program:
python calculator.py

Example Usage

Enter a number: 10
Enter another number: 2

Choose the calculation:
1) +
2) -
3) x
4) ÷
5) x^x
6) sqrt
: 1
Result: 12

Notes

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.


Author

Pedro Gaudencio

About

A command-line calculator built in Python, featuring basic arithmetic operations, exponentiation, and square root calculation. Developed to practice core programming concepts such as functions, conditionals, loops, and user input handling.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages