Skip to content

gt-codes04/interactive-calculator-command-line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Calculator (Command-Line)

A simple Python command-line calculator that supports basic operations:

  • Addition
  • Subtraction
  • Multiplication
  • Division (with zero-division handling)

Features

  • Interactive menu-based input
  • Clear error messages for invalid inputs
  • Modular code (operations are in a separate file)
  • Unit tests using pytest

Project Structure

Interactive-calculator-command-line/ │── calculator.py # Main program │── operations.py # Core math functions │── tests/ │ └── test_operations.py # Unit tests │── requirements.txt # Dependencies (pytest)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages