Editted a few lines of description to align with contributing guidlines adn added another test case

pull/1207/head
Matthew Volpe 2023-06-22 20:35:55 -04:00
parent 129304e70e
commit 091dff4fa0
1 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
''' '''
Output the correct Roman numerals for a given number. 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. 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 Input: 1994
@ -29,3 +29,6 @@ if __name__ == "__main__":
print(int_to_roman(3999)) print(int_to_roman(3999))
# MMMDXLIX # MMMDXLIX
print(int_to_roman(19))
# XIX