From 091dff4fa0c742a5e40482d0998ab151c0f0f78f Mon Sep 17 00:00:00 2001 From: Matthew Volpe <69683445+mVolpe94@users.noreply.github.com> Date: Thu, 22 Jun 2023 20:35:55 -0400 Subject: [PATCH] Editted a few lines of description to align with contributing guidlines adn added another test case --- algorithms/Python/strings/int-to-roman.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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