Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
native_roman_numerals solution in Uncategorized category for Roman Numerals by Jon_Red
def checkio(data):
a,d='',[1000,900,500,400,100,90,50,40,10,9,5,4,1]
s=['M','CM','D','CD','C','XC','L','XL','X','IX','V','IV','I']
for i in range(len(d)):a,data=a+s[i]*(data//d[i]),data-d[i]*(data//d[i])
return a
June 23, 2020