- 2
Print the given value in string format
Test Cases 3 Three 574 Five hundred seventy Four You may upto 1000
2 Réponses
+ 2
Luckily, found a code snippet for you :))
Check this out :
https://code.sololearn.com/c2lLa1kUrn5Z/?ref=app
Bonus : It is not upto 1000. You can type any number!
+ 1
__import__("os").system("pip install inflect -q")
import inflect
b=inflect.engine()
Num=674
a=b.number_to_words(Num)
we have this library in python ..and you can type any number