Romans X76192


Statement
 

pdf   zip

html

Design a function romanos_a_int(rom) which, given a str rom composed of ’IVXLCDM’ characters containing a well-spelled Roman numeral with a value lower than 4000, returns the equivalent numeric value.

Sample session
>>> romanos_a_int('MMMCMLXXXVI')
3986
Information
Author
InfBesos
Language
English
Translator
Original language
Spanish
Other languages
Catalan Spanish
Official solutions
Python
User solutions
Python