def test_int_to_roman(self): self.assertEqual("DCXLIV", int_to_roman(644)) self.assertEqual("I", int_to_roman(1)) self.assertEqual("MMMCMXCIX", int_to_roman(3999))
""" Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. """ from algorithms.strings import int_to_roman n=34 print(int_to_roman(n))