Roman Numerals

Created on Jan. 16, 2017 by Julien Palard

Description

Create a function named to_roman_numeral converting a given number to Roman Numerals (standard form), 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'
  • There's no corrections yet, hit the `Submit` button to send your code to the correction bot.
  • Keyboard shortcuts:
    • Ctrl-Enter: Send your code to the correction bot.
    • Escape: Get back to the instructions tab.
(Ctrl-Enter)