From: Benny Malengier <benny.malengier@gm...>  20080522 12:48:56

2008/5/22 James A. Treacy <treacy@...>: > On Wed, May 21, 2008 at 05:27:18PM 0700, Rob G. Healey wrote: > > Greetings: > > > > In working with integers in python, /if an integer is greater than > > 9, so 10 and above. How do I break it down to just the ones part to > > test it for adding something to it based on 1st, 2nd, 3rd. I am wanting > > to add the st nd and rd part to it..... > > x = 9 > ones = x%10 > >  In case above is cryptic rob, James means the modulus operator: For the time being, we will concentrate on the follow arithmetic operators:  The addition operator, +  The subtraction operator,   The multiplication operator, *  The division operator, /  The modulus operator, % More in: http://www.python.org/doc/current/ref/operators.html Benny 