Roman numerals are a numeral system that originated in ancient rome. Numbers in this system are represented by combinations of letters. Modern usage employs seven symbols, each with a fixed integer value:
The following image shows how Roman numerals are typically represented
A number containing several decimal digits is built by appending the Roman numeral equivalent for each, from highest to lowest, as in the following examples:
39 = XXX + IX =XXXIX.
789 = DCC + LXXX + IX = DCCLXXXIX
99 = XC + IX = XCIX
In python we could translate this by the following code :