say_last_digits
say_last_digits
Return the last n digits of text, one word each, as one group: for “a card
ending in” or “the account ending in”. Separators in text are ignored. The words
come from say_digits().
Parameters
text
The number, with any separators.
n
How many of the last digits to say. Raises ValueError unless it’s a whole
number of at least 1.
zero
Keyword-only. The word for 0, such as "oh".
Returns
str — The words, or "" when text has no digits.
Example
Part of the speech helpers module.