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
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
You can use the num2words library in Python. For example:
from num2words import num2words
print(num2words(12))
Output:
twelve
First do
$ pip install inflect
then do
import inflect
p = inflect.engine()
p.number_to_words(99)