Skip to content

Oanekrif/Py-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

🧮 Simple Calculator using Python (Tkinter)


📋 Project Description:

This project is a simple calculator application built using Python and Tkinter. It provides a graphical user interface (GUI) for performing basic arithmetic operations such as addition, subtraction, multiplication, and division. The calculator is designed to be intuitive and easy to use, making it a great learning tool for Python beginners.

🛠️ Key Features:

• GUI Interface: Built with Tkinter for a clean and user-friendly design.
• Basic Operations: Supports addition, subtraction, multiplication, and division.
• Clear Function: Easily reset the calculator input field.
• Responsive Layout: Buttons are arranged in a grid for easy navigation.

🌐 Technologies Used:

• Python 3.x
• Tkinter (Python's built-in GUI library)

🚀 How to Use:

  1. Clone the repository:
    git clone https://github.com/Oanekrif/Py-Calculator.git
  2. Navigate to the project directory:
    cd Py-Calculator
  3. Run the Python script:
    python calculator.py

📝 Code Highlights:

• Input Handling: The calculator updates the display dynamically based on user input.
• Evaluation Function: Uses Python's eval() function to compute the result.
• Error Handling: Prevents invalid operations (like division by zero) with simple checks.

📸 Screenshots:

overview

🎯 Future Enhancements:

• Add support for advanced mathematical operations (e.g., square root, exponentiation).
• Implement error messages for invalid inputs.
• Improve the design with custom styles or themes.

🧑‍💻 Contributing:

Contributions are welcome! If you'd like to add more features or improve the project, feel free to fork the repository and create a pull request.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages