https://github.com/dzareldeveloper/calculator
Project-1 | Hari-1 | 50 Project Python
https://github.com/dzareldeveloper/calculator
Last synced: 11 months ago
JSON representation
Project-1 | Hari-1 | 50 Project Python
- Host: GitHub
- URL: https://github.com/dzareldeveloper/calculator
- Owner: DzarelDeveloper
- License: mit
- Created: 2024-12-10T13:12:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-20T03:18:14.000Z (over 1 year ago)
- Last Synced: 2025-03-30T06:16:29.149Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Project-1: Calculator
## Description
This project is a simple GUI-based calculator built using Python's `tkinter` library. The calculator provides basic arithmetic operations such as addition, subtraction, multiplication, and division. It features a clear, user-friendly interface designed for easy interaction.
## Prerequisites
Before running this project, ensure the following modules are installed:
- **Tkinter**: Tkinter is included by default in most Python distributions. To verify, you can run the following command in your terminal or command prompt:
```bash
python -m tkinter
```
If the Tkinter window opens, the module is installed. If not, install it by following instructions specific to your operating system:
- **For Linux (Ubuntu/Debian)**: Run `sudo apt-get install python3-tk`
- **For macOS/Windows**: Tkinter is typically included in standard Python installations.
## How to Run
1. Open a terminal or command prompt in the project directory.
2. Run the Python script:
```bash
python project-1.py
```
3. The calculator GUI window will open. You can now perform basic arithmetic operations using the buttons on the interface.
## Features
- **Arithmetic Operations**: Addition, subtraction, multiplication, and division.
- **Clear Functionality**: Reset the input field using the "AC" button.
- **Error Handling**: Handles invalid input and division by zero gracefully.
## Limitations
- Supports only one operation at a time (e.g., no chained calculations like `2 + 3 × 4`).
- No memory or advanced scientific calculation features.
## Future Enhancements
- Add support for chained calculations.
- Include scientific calculator functions (e.g., square root, power, trigonometric functions).
- Improve UI/UX with modern styling.
## License
This project is licensed under the MIT License by DzarelDeveloper. Feel free to use, modify, and distribute it as you wish.
---
If you encounter any issues or have suggestions for improvement, please open an issue or submit a pull request on the [project repository](https://github.com/DzarelDeveloper/Calculator).