division by 7 efficiently ???
Ben Finney
bignose+hates-spam at benfinney.id.au
Thu Feb 1 01:18:21 EST 2007
"Paddy" <paddy3118 at netscape.net> writes:
> On Feb 1, 2:42 am, krypto.wiz... at gmail.com wrote:
> > How to divide a number by 7 efficiently without using - or / operator.
>
> >>> int.__div__(14,2)
> 7
> >>>
>
> Not a minus or division operator in sight ;-)
I salute you, sir. That's the perfect answer to the boneheaded
constraints of the problem :-)
--
\ "What I resent is that the range of your vision should be the |
`\ limit of my action." -- Henry James |
_o__) |
Ben Finney
More information about the Python-list
mailing list