Created
November 7, 2014 02:38
-
-
Save agiletalk/17e92e1e6950e72e0a9f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'agiletalk' | |
from calendar import monthrange, SUNDAY | |
print(len([(year, month) for year in range(1901, 2001) for month in range(1, 13) if monthrange(year, month)[0] is SUNDAY])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment