> Heres the code
>
> def increment(digits,symbols):
> overflow=True
> digitpos=-1
> while overflow and -digitpos<=len(digits):
> digitsymbolindex=symbols.index(digits[digitpos])
> if digitsymbolindex==len(symbols)-1:
>
On Jan 25, 5:05 am, [EMAIL PROTECTED] wrote:
> Hallo pyPeople,
>
> I wrote a little snippet of code that takes a list representing some
> 'digits', and according to a list of symbols, increments the digits through
> the symbol list.
>
> so for example,
>
> digits=["a","a","a"]
> symbols=["a","b","
Hallo pyPeople,
I wrote a little snippet of code that takes a list representing some
'digits', and according to a list of symbols, increments the digits through
the symbol list.
so for example,
digits=["a","a","a"]
symbols=["a","b","c"]
increment(digits,symbols) repeatedly would return digits