Solutions for the Python Challenge

Show possible solutions for: All levels; level: previous, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, next

Possible solution for level 15

URI:
http://www.pythonchallenge.com/pc/return/uzi.html
Log-in data:
Username: huge; password: file
Comment:
This one’s rather a Google/Wikipedia-research challenge than it is one in programming. However, January 27th, 1756, is the birthday of Mozart, and this is how you get to the year in the first place:
Possible Solution:
import calendar

print [i for i in range(1006, 2006, 10) if calendar.weekday(i, 1, 1) == 3][-3]

(Download this source code.)

Code word for next challenge:
mozart

By Holger Thölking, May 29th, 2007.