diff --git a/algorithms/Python/strings/int-to-roman.py b/algorithms/Python/strings/int-to-roman.py index 7d1dfce8..1ef42159 100644 --- a/algorithms/Python/strings/int-to-roman.py +++ b/algorithms/Python/strings/int-to-roman.py @@ -1,7 +1,7 @@ ''' Output the correct Roman numerals for a given number. -This will only give accurate roman numerals up to 3,999. Anything higher starts to combine the addition method along with the traditional method. +This will only give accurate roman numerals up to 3,999. Anything higher starts to combine the addition method along with the traditional method of writing roman numerals. Numbers higher than 3,999 need to show a line above a roman numeral to say that it is 1,000 times that number. ie: V(with the line above) would be 5,000. Input: 1994 @@ -28,4 +28,7 @@ def int_to_roman(num): if __name__ == "__main__": print(int_to_roman(3999)) - # MMMDXLIX \ No newline at end of file + # MMMDXLIX + + print(int_to_roman(19)) + # XIX \ No newline at end of file