Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Best Way solution in Clear category for Roman Numerals by AMJ
def checkio(num):
result= []
romans= ('M','CM','D','CD','C','XC','L','XL','X','IX','V','IV','I')
nums= (1000,900,500,400,100,90,50,40,10,9,5,4,1)
table= zip(nums,romans)
for n,r in table:
while num >= n:
result.append(r)
num -= n
return ''.join(result)
Aug. 17, 2015