Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
replacereplacereplacereplacereplacereplace..... solution in Clear category for Reverse Roman Numerals by popomin
def reverse_roman(text):
text = text.replace("CM","+900").replace("CD","+400").replace("XC","+90").replace("XL","+40").replace("IX","+9").replace("IV","+4").replace("M","+1000").replace("D","+500").replace("C","+100").replace("L","+50").replace("X","+10").replace("V","+5").replace("I","+1")
return eval(text)
Dec. 6, 2017
Comments: