Created
March 29, 2016 23:01
-
-
Save myano/ae5536021185bed005fdcc08e1ba433a to your computer and use it in GitHub Desktop.
Non-submitted solution for COhPy's 201602 challenge, (https://github.com/cohpy/challenge-201602-leapday).
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
#!/usr/bin/env python3 | |
## This works in Python 2 and Python 3 | |
import datetime as dt | |
for x in range(2020, 1000000, 4): | |
t = dt.datetime(x, 2, 29) | |
if t.weekday() == 0: | |
print("Found it! {0}".format(x)) | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment