Simple Calculator (CLI)

Welcome to the Simple Calculator (CLI) page.

This page contains a brief description and implementation instructions for the project.

Project Description

A basic calculator for arithmetic operations. The program presents a menu (add, subtract, multiply, divide), asks the user to select an operation, and input two numbers. It then performs the operation and displays the result.

Project Requirements

Python 3.x (no external libraries; optional tkinter if building a GUI).

How to Run the Project

  1. Write a script (e.g. calculator.py) defining functions for each operation (add, sub, etc.) and prompting the user with options.
  2. Run it: python calculator.py.
  3. Follow the menu (e.g. “1. Add 2. Subtract...”), enter two numbers, and see the result.

Key Concepts Learned

Possible Extensions

Troubleshooting & Debugging

See Troubleshooting & Debugging.

← Back to Python Programming Page