Skip to content

BlackCoder56/simple_calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Simple_calculator

A simple Python-based calculator that supports basic operations such as addtion, subtraction, multiplication,and division. The calculator handles invalid inputs and division by zero gracefully.

Features

  • Addition: Adds two numbers.
  • Subtraction: Subtracts the second number from the first.
  • Multiplication: Multiplies two numbers.
  • Division: Divides the first number by the second, with error handling for division by zero.
  • Error Handling: Return appropriate error messages for invalid input and division by zero

Installation

  1. Clone the repository:

    git clone https://github.com/BlackCoder56/simple_calculator.git
  2. Navigate to the project directory:

    cd simple_calculator

Usage

To use the calculator, run the script in the command line:

Linux terminal

    python3 main.py

Windows

    python main.py

Contributing

Contributions are welcome! Feel free to fork the repository and submit pull requests.

License

This project is licensed under the MIT License

About

Simple python3 calculator. #Codveda

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages