Python on my Website

I had added a total of 104 word descriptions of parts of 3 numbers (thousands, millions, billions…Trescentillion), to my bignums.py program. But realized my version on my website only had 20 parts, so I thought I’d update it. Only to find, it doesn’t work. So I opened a ticket #225266, at my web hosting company. I said…

I have a Python program (BigNum.py) in /public_html/cgi-bin that use to work. It was uploaded 15 years ago on 3/26/2009. I don’t look at all these programs often, so I don’t know when it stopped working. I assume sometimes within the last few years.

Soon after I realize that a 15 year old program, would definitely not be Python 3. And Python 2 is unsupported. So I simply ran it through the Python3 2to3 utility, to create a Python 3 version.

Never the less they saw and fixed a problem on my server, for both Python 2 and Python 3.

So if you enter a big number like 7683228048603389507592207272278065513212
it responds…

7683228048603389507592207272278065513212
or…
7 Duodecillion
683 Undecillion
228 Decillion
48 Nonillion
603 Octillion
389 Septillion
507 Sextillion
592 Quintillion
207 Quadrillion
272 Trillion
278 Billion
65 Million
513 Thousand
212

However the Python 3 program is responding (it looks like a tuple)…

7683228048603389507592207272278065513212
or…
(‘7 Duodecillion’, ‘
‘) (‘683 Undecillion’, ‘
‘) (‘228 Decillion’, ‘
‘) (’48 Nonillion’, ‘
‘) (‘603 Octillion’, ‘
‘) (‘389 Septillion’, ‘
‘) (‘507 Sextillion’, ‘
‘) (‘592 Quintillion’, ‘
‘) (‘207 Quadrillion’, ‘
‘) (‘272 Trillion’, ‘
‘) (‘278 Billion’, ‘
‘) (’65 Million’, ‘
‘) (‘513 Thousand’, ‘
‘) (‘212’, ‘
‘)