← Previous Next →

Roman Numerals

Created by Julien Palard

Description

Create a function named to_roman_numeral converting a given number to Roman Numerals, such as:

>>> to_roman_numeral(1)
'I'
>>> to_roman_numeral(2)
'II'
>>> to_roman_numeral(4)
'IV'
>>> to_roman_numeral(8)
'VIII'
>>> to_roman_numeral(16)
'XVI'
>>> to_roman_numeral(32)
'XXXII'

Results