Contact: aviboots(AT)netvision.net.il
43,944 questions
57,354 answers
573 users
from num2words import num2words n = 24 print(num2words(n)) print(num2words(n, to = 'ordinal')) print(num2words(n, to = 'ordinal_num')) print(num2words(n, to = 'year')) ''' run: twenty-four twenty-fourth 24th twenty-four '''
import inflect n = 12853279456 ie = inflect.engine() words = ie.number_to_words(n) print(words) ''' run: one hundred and twenty-eight million, five hundred and thirty-two thousand, seven hundred and ninety-four '''