Skip to content

syaharip005/SimpleMath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Math CLI

A tiny command-line math utility written in Python that supports four operations:

  • add
  • sub
  • mul
  • div

Usage

Install (optional) and run:

python simple_math.py add 3 4
python simple_math.py sub 10 7
python simple_math.py mul 6 8
python simple_math.py div 10 2

Examples:

$ python simple_math.py add 2 3
5

$ python simple_math.py div 7 2
3.5

Exit codes:

  • 0 on success
  • non-zero on error (e.g., division by zero)

Files

  • simple_math.py — main script

License

Choose a license (MIT recommended). If you'd like, I can add a LICENSE file for you.

About

For Education

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages