Skip to content

LeratoMosia/Python-calculator-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Python-calculator-

A simple Python calculator that performs basic arithmetic operations. The calculator supports addition, subtraction, multiplication, and division. It includes error handling to handle scenarios like division by zero.

Calculator App

A basic calculator application in Python.

Introduction

Welcome to my Calculator App! This project is a simple calculator implemented in Python, allowing users to perform basic arithmetic operations.

Features

  • Addition
  • Subtraction
  • Multiplication
  • Division

Getting Started

To use the Calculator App on your local machine, follow the instructions below.

Prerequisites

Make sure you have Python installed on your machine.

Usage

  1. Run the calculator.py script:

    python calculator.py
  2. Follow the on-screen instructions to choose the operation and enter numbers for calculation.

  3. The result will be displayed, and you can choose to perform another calculation.

Example

Select operation.
1. Add
2. Subtract
3. Multiply
4. Divide

Enter choice (1/2/3/4): 1
Enter the first number: 10
Enter the second number: 5
10.0 + 5.0 = 15.0

Let's do the next calculation. (yes/no): yes

About

A simple Python calculator that performs basic arithmetic operations. The calculator supports addition, subtraction, multiplication, and division. It includes error handling to handle scenarios like division by zero.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages