An open API service indexing awesome lists of open source software.

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

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).