On Jan 31, 11:36 pm, "Paddy" <[EMAIL PROTECTED]> wrote: > On Feb 1, 2:42 am, [EMAIL PROTECTED] wrote: > > > > > How to divide a number by 7 efficiently without using - or / operator. > > We can use the bit operators. I was thinking about bit shift operator > > but I don't know the correct answer. > >>> int.__div__(14,2) > 7 > > Not a minus or division operator in sight ;-) > > - Paddy.
Now I'm confused - was the OP trying to divide by 7 or 2? -- Paul -- http://mail.python.org/mailman/listinfo/python-list