lucas404x / pycalc3-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calculator CLI

Tier: 2-Intermediate

This is my version from Calculator CLI made in Python 3.

The challenge was from this repository.

User Stories

  • User can add multiple numbers using add command.
  • User can add floating numbers using the -f flag.
  • User can add only even/odd numbers using even/odd sub-command.
  • User can use --help or -h flag to get all the available commands and flags.

Bonus Features

  • User can use all the basic arithmetic operations like (addition, subtraction, multiplication and divison).
  • User can use --help or -h flag to get the sub-commands of command.
  • Power of and Square Root of operation.

Example

python main.py -f 3.4 add 3.2 sub 3.2
> 3.4

python main.py -odd 3 add 9 div 3
> 6

About

License:MIT License


Languages

Language:Python 100.0%