🧮 Scientific Calculator – Python
A console-based Python calculator that performs standard arithmetic and scientific operations. It allows users to perform addition, subtraction, multiplication, division, exponentiation, square roots, and more—all from the command line.
🚀 About
This Scientific Calculator project is designed for beginners to practice Python programming while building a functional tool. It supports both basic arithmetic operations and some advanced mathematical functions, making it a great learning exercise in Python logic, functions, and input handling.
🛠️ Features
• Basic arithmetic operations: addition, subtraction, multiplication, division • Scientific functions: exponentiation, square roots, factorial, logarithms, trigonometric functions (sin, cos, tan) • User-friendly console interface with menus • Input validation to prevent errors • Performs multiple calculations in a single session
🧰 Built With
🐍 Python 🖥️ Command-Line Interface 📐 math module
🚀 Getting Started
✔️ Prerequisites Make sure Python 3 is installed on your machine.
📥 Install & Run
- Clone the repository:
git clone https://github.com/your-username/scientific-calculator.git
- Open the project folder:
cd scientific-calculator
- Run the program:
python main.py
(Replace main.py with your file name if different.)
📖 Usage
- Run the program.
- Select an operation from the menu (e.g., addition, subtraction, square root, sin).
- Enter the required number(s) when prompted.
- View the result and choose to perform another calculation or exit.
🧪 Example
Select operation:
1. Addition
2. Subtraction
3. Multiplication
4. Division
5. Square Root
6. Exponent
7. Factorial
8. Sin
9. Cos
10. Tan
> 1
Enter first number: 10
Enter second number: 5
Result: 15
🖋️ Contributing
Contributions are welcome! You can: • Add more scientific operations • Improve the menu interface • Add error handling for edge cases • Enhance documentation
Feel free to open an issue or submit a pull request.
📜 License
This project is open-source and free to use for learning and practice.
📌 Notes
• This calculator is intended for educational purposes and beginner practice. • Designed as a console application for Python learning.
Do you want me to do that?