0

Can someone help me with this python programming problem create a program that will convert integer to string example input number: 999 result: nine hundred 99

input number: 1 result: one

input number: 22 result: twentytwo

rose
  • 1
  • Please provide examples that you have tried and what is the issue so we could help you to resolve the issue. Please see on how to ask a questions here in stackoverflow.com -> https://stackoverflow.com/help/how-to-ask – simkusr Jan 21 '21 at 09:55
  • Does this answer your question? [converting numbers in to words C#](https://stackoverflow.com/questions/2729752/converting-numbers-in-to-words-c-sharp) – Meneer Venus Jan 21 '21 at 13:32

2 Answers2

1

You can use the num2words library in Python. For example:

from num2words import num2words
print(num2words(12))

Output:

twelve
Jack Morgan
  • 317
  • 1
  • 14
0

First do

$ pip install inflect

then do

    import inflect
    p = inflect.engine()
    p.number_to_words(99)
Soham
  • 1
  • 8