Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Radical solution in Creative category for Speech Module by veky
def checkio(n, d=dict(enumerate(" one two three four five six seven eight nine ten eleven twelve".split(" ")))):
def i(s, j=iter("o en ree ir ve f t ".split(" "))):
for k in j: s = __import__("re").sub(k + "$", next(j), s)
return s
return(d[n//100]+" hundred "*(n>99)+d.get(n%100,n%100<20and i(d[n%10])+"teen"or i(d[n//10%10]).replace("u","")+"ty "+d[n%10])).strip()
May 4, 2014
Comments: