Computer Science, asked by kesh005, 9 months ago

python program that read a number in digit and prints in words

Answers

Answered by ıtʑFᴇᴇʟɓᴇãᴛ
5

Sample code to convert numbers to words:

import inflect.

  • p = inflect. engine()
  • words = p. number_to_words(1234)
  • # Prints “one thousand, two hundred and thirty-four”
  • print(words)
  • words = p. number_to_words(p. ordinal(1234))
Similar questions