Re: Fw: Undeliverable Message

2008-01-31 Thread Matthew_WARREN
> 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: >                    

Re: Fw: Undeliverable Message

2008-01-30 Thread Bart Kastermans
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","

Fw: Undeliverable Message

2008-01-25 Thread Matthew_WARREN
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