← Previous Next →

Reverse Roman Numerals

Created by Julien Palard

Instructions

Write a function named from_roman_numeral that return the value of a given roman numeral.

Example

>>> print(from_roman_numeral("V"))
5
>>> print(from_roman_numeral("XX"))
20
>>> print(from_roman_numeral("DCCC"))
800
>>> print(from_roman_numeral("MMMM"))
4000

Your Code

Login to check your code and save your progress.