[Tutor] Is there an easily or shorter way?
Albert-Jan Roskam
fomcl at yahoo.com
Tue Dec 16 16:17:14 CET 2014
----- Original Message -----
> From: Danny Yoo <dyoo at hashcollision.org>
> To: Ken G. <beachkidken at gmail.com>
> Cc: Python Tutor Mailing List <tutor at python.org>
> Sent: Monday, December 15, 2014 10:45 PM
> Subject: Re: [Tutor] Is there an easily or shorter way?
>
>> As a side note: if we were to talk about how we'd do this in a
>> professional context, I think we'd recommend a library such as
>> "humanize", which has functions to go from numbers to
> human-friendly
>> string descriptions.
>>
>> https://pypi.python.org/pypi/humanize
>
>
> Whoops: wrong library. Humanize is a good one, but not exactly the
> one I was supposed to cite. I should have cited num2words, which is a
> cardinal number library:
>
> https://pypi.python.org/pypi/num2words
Nice, useful. Humanize seems a better choice because it uses gettext. It is probably easier to add another language (like my own, which is not part of the package).
More information about the Tutor
mailing list