word to digit module
Fredrik Lundh
fredrik at pythonware.com
Wed Dec 22 03:01:45 EST 2004
Stephen Thorne wrote:
>> Is there any module available that converts word like 'one', 'two',
>> 'three' to corresponding digits 1, 2, 3??
>
> This seemed like an interesting problem! So I decided to solve it.
> for i in range(40000):
that's a slightly unusual definition of "digit", but it's a nice script, and
an excellent illustration of pragmatic test-driven development, so who
am I to complain?
</F>
More information about the Python-list
mailing list