Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Roman Numerals by panaro32
S = ['','I','II','III','IV','V','VI','VII','VIII','IX']
def checkio(n):
t,h,d,m = n//1000,n//100%10,n//10%10,n%10
return 'M'*t + S[h].translate(dict(zip(map(ord,'IVX'),'CDM'))) + S[d].translate(dict(zip(map(ord,'IVX'),'XLC'))) + S[m]
May 2, 2014
Comments: