[Edu-sig] A Quick Puzzle
kirby.urner at gmail.com
Wed Mar 8 06:14:39 CET 2006
Here's a cut and paste from Pauling House (boyhood home of Portland
*other* famous Linus).
>>> import datetime
>>> me = datetime.date(1952,12,17)
>>> dog = datetime.date(1999, 1,2)
>>> print me + (7 * (dog - me)/6)
This is the real answer the guy wanted. Mission accomplished. No
offer of $5 though.
On 3/7/06, Michael Tobis <mtobis at gmail.com> wrote:
> # I love Python!
> import datetime # batteries included!
> me = datetime.date(1954,9,1)
> dog = datetime.date(2006,3,7)
> print me + (7 * (dog - me)/6)
> # mt
> On 3/7/06, kirby urner <kirby.urner at gmail.com> wrote:
> > Here's a quick puzzle, that'd make a good source of Python programs,
> > or programs in other languages:
More information about the Edu-sig