Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Speech Module by melpon
X='thir four fif six seven eigh nine'.split()
A=' one two three four five six seven eight nine ten eleven twelve'.split(' ')+[s+'teen'for s in X]
B=['twenty']+[s.replace('u','')+'ty'for s in X]
f=lambda n,v=0:v and[A[v],'hundred']+f(n%100)or n<20 and [A[n]]or[B[n//10-2]]+f(n%10)
checkio=lambda n:' '.join(f(n,n//100)).strip()
Feb. 14, 2014
Comments: