Tier: 2-Intermediate
This is my version from Calculator CLI made in Python 3.
The challenge was from this repository.
- 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.
- 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.
python main.py -f 3.4 add 3.2 sub 3.2
> 3.4
python main.py -odd 3 add 9 div 3
> 6