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!

Arithmetic-operations-on-roman-numerals

Python code which can perform arithmetic operations on Roman Numerals

How to use run this file

  1. Clone this repository into your local
  2. This program needs Python 2.7 (Install Python 2.7 if not installed)
  3. In case you dont know which version of python installed in your local use python -V command
  4. Make sure that your PWD(Present working Directory) is the cloned repository in your terminal if not go to the cloned folder
  5. Run python roman_arithmetic.py in your terminal from this working directory
  6. Enter the roman arithetic operation which you want to perform in this below format
    1. You need to enter RomanNumber1 Operation RomanNumber2 ( **Eg: XL + X ** )
  7. You will get result also you would get Unittest status below the Result:

The following is the result when I have run the program on my loccal

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 
⚠️ **GitHub.com Fallback** ⚠️