[Edu-sig] A Quick Puzzle

Michael Tobis mtobis at gmail.com
Wed Mar 8 01:49:27 CET 2006


# 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 mailing list