I\'m trying to write a code that will convert numbers to words, up to 999 trillion. here is my code so far. it works up to 119, but after that things get messy. I can\'t use
I don't want to discourage you, but this problem has already been solved. There is a neat Python module to do this, called num2words
Here is the link to the GitHub repository
And here is the actual script for the English language (it supports multiple languages). There you can get some inspiration to fix your script if still needed.