Task
Define two extra functions: roman_to_int and int_roman_converter.
The roman_to_int function will carry out the reverse of the int_to_roman defined in puzzle 41. The function will take a string containing roman numerals and will return the corresponding integer.
|
|
|
|
|
|
|
|
|
The representative integer should be between 1 and 4999 inclusive.
|
The int_roman_converter function will take either an integer or a string containing roman numerals. Depending on the input the function will either:
- Return the input integer converted to a roman numeral.
- Return the input string converted to an integer.
The function can determine whether it’s been provided an integer ...