Menu

Tree [cb8420] master /
 History

HTTPS access


File Date Author Commit
 README.md 2026-03-13 Abiram Abiram [ec8174] Improved README documentation
 calculator.py 2026-03-13 Abiram Abiram [ebbf2b] Updated calculator with comments
 requirements.txt 2026-03-13 Abiram Abiram [cb8420] requirements

Read Me

Simple Calculator

A simple Python calculator project with basic arithmetic operations and example output.

Features

  • Add two numbers
  • Subtract one number from another
  • Run a built-in example from the command line

Project Structure

  • calculator.py: Contains calculator functions and runtime example output
  • requirements.txt: Python dependencies (currently empty)

Requirements

  • Python 3.8+

Install dependencies (optional for this project):

pip install -r requirements.txt

Usage

Run the script:

python calculator.py

Available Functions

  • add(a, b): Returns the sum of a and b
  • subtract(a, b): Returns the result of a - b

Example output:

Simple Calculator Example Outputs
Addition (5 + 3): 8
Subtraction (10 - 4): 6
MongoDB Logo MongoDB