Created
August 20, 2017 22:04
-
-
Save Weyzu/47283fbf08ecfcec7efcd53a51c80afa to your computer and use it in GitHub Desktop.
This file contains 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
def is_leap_year(year): | |
if year % 400 == 0: | |
return True | |
if year % 100 == 0: | |
return False | |
return year % 4 == 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment