No longer a question, please delete
If you put the digit values in a string then the base you can use gets very high very easily.
radixdigits = '0123456789ABCDEFGHI...'
And then you can do divmod()
with the length of the string in order to get the current digit, and index the string with that number.
This was featured on Google Code Jam. A few years ago. You are looking for the problem called Alien Numbers
I would encourage you to take a look at that first (and the uploaded solution code) and if that doesn't work for you, let me know and I can show you my solution which I can explain more clearly
Hope this helps
What is the highest base that I can convert to without having my program become incredibly complicated?
In ASCII, base 127. However, that will be hard to read because of the upper-case/lower-case things looking similar, and the non-printable ASCII characters requiring a lot of complex escapes.
You're better limiting things to about base 36 because you can use digits and letters without any confusing ambiguity.
In Unicde, base 65536 or some such, depending on how many Unicode characters you want to deal with.
I'm thinking Base 9, because after 10 (which is already given), the bases start to use letters. Am I correct?
You're sort-of correct.
Standard ASCII has 9 digit symbols. You're not forced to use letters, but it's pretty common to use letters.
You could use lots of Unicode symbols that are neither letters nor digits.
I'm attempting to do this without modules.
That's not terribly relevant.
Now read other Stackoverflow questions on Base Conversion.
Here's a starter: http://stackoverflow.com/questions/1119722/base-62-conversion-in-python
Here's the search: http://stackoverflow.com/search?q=%5Bpython%5D+base+conversion