Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Creative category for Speech Module by MMM_AAA_NNN
def checkio(n):
w, h, t, o = (",one,two,three,four,five,six,seven,eight,nine,ten,eleven,twelve," +
"thirteen,fourteen,fifteen,sixteen,seventeen,eighteen,nineteen,,," +
"twenty ,thirty ,forty ,fifty ,sixty ,seventy ,eighty ,ninety ," +
" hundred ").split(","), n // 100, (n % 100) // 10, n % 10
return (w[h] + w[30] * bool(h) + w[t + 20] + w[o + 10 * (t == 1)]).strip()
April 25, 2015
Comments: