The inflect package can do this.
https://pypi.python.org/pypi/inflect
$ pip install inflect
and then:
>>>import inflect
>>>p = inflect.engine()
>>>p.number_to_words(99)
ninety-nine
More Related Contents:
- How do you run your own code alongside Tkinter’s event loop?
- Is there a way to make a discontinuous axis in Matplotlib?
- Interleave multiple lists of the same length in Python
- Directory-tree listing in Python
- Is it possible to dereference variable id’s?
- How to get current available GPUs in tensorflow?
- How to check if a Python module exists without importing it
- Save list of DataFrames to multisheet Excel spreadsheet
- Find first element in a sequence that matches a predicate
- Custom Python list sorting
- python: get the print output in an exec statement
- Running interactive commands in Paramiko
- replacing text in a file with Python
- Which tkinter modules were renamed in Python 3?
- How to Access Function variables in Another Function
- How to specify python version used to create Virtual Environment?
- Parallel Processing in python
- How to extract metadata for more than 20000 videos from channel using YouTube Data API v3?
- Python: SyntaxError: non-keyword after keyword arg
- Convert pandas data frame to series
- Disable / Enable Button in TKinter
- difference between variables inside and outside of __init__() (class and instance attributes)
- convert csv file to list of dictionaries
- Can I access ImageMagick API with Python?
- How to retrieve the title attribute through Selenium using Python?
- Generate all subsets of size k (containing k elements) in Python
- Sparse Tensor (matrix) from a dense Tensor Tensorflow
- Extending python – to swig, not to swig or Cython
- Integers from excel files become floats?
- Python replace function [replace once]