[PyAR2] Mini Programming Contest
pyar2 at cowsgomoo.org
Wed Nov 28 17:27:54 CET 2007
3 lines, wouldn't call 'em ugly (not very pythonic, maybe) ... it took me a
couple revisions to make it work like I wanted in that short of space.
spoilers at http://cowsgomoo.org/brainBasher.py
On Nov 28, 2007 9:30 AM, Greg Lindstrom <gslindstrom at gmail.com> wrote:
> This was today's "Brain Basher" puzzle.
> What is the smallest integer that when multiplied by 7 produces an integer
> containing only 6's?
> I solved in in my IDLE editor with 3 lines of code (granted, one line is
> fairly ugly) and less than 1 minute. I'll post my version later tonight,
> but why don't you take a crack at it, if you have some free time. It's a
> good way to see different ways to solve a problem.
> PyAR2 mailing list
> PyAR2 at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyAR2