Wiki for this Repo - Varmaiit/python-code-for-arithmetic-operations-on-roman-numerals GitHub Wiki
Welcome to the python-code-for-arithmetic-operations-on-roman-numerals wiki!
Python code which can perform arithmetic operations on Roman Numerals
- Clone this repository into your local
- This program needs Python 2.7 (Install Python 2.7 if not installed)
- In case you dont know which version of python installed in your local use
python -V
command - Make sure that your PWD(Present working Directory) is the cloned repository in your terminal if not go to the cloned folder
- Run
python roman_arithmetic.py
in your terminal from this working directory - Enter the roman arithetic operation which you want to perform in this below format
- You need to enter RomanNumber1 Operation RomanNumber2 ( **Eg: XL + X ** )
- You will get result also you would get Unittest status below the Result:
Result: XL + X = L
Also printing Unit test Results
testing function 'test_arithmetic_on_roman'
[OK] in 'test_arithmetic_on_roman' 0.0009999275 sec
.
testing function 'test_int_to_roman'
[OK] in 'test_int_to_roman' 0.0009999275 sec
.
testing function 'test_roman_to_int'
[OK] in 'test_roman_to_int' 0.0000000000 sec
.
----------------------------------------------------------------------
Ran 3 tests in 0.003s
OK