Created
January 25, 2018 01:58
-
-
Save brenapp/0d6ef4003529e2fa9c8b111031ecb427 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
| # isLeapYear - determines if the passed integer is a leap year | |
| def isLeapYear(year): | |
| isLeap = False | |
| if year % 4 == 0: | |
| isLeap = True | |
| if year % 100 == 0: | |
| isLeap = False | |
| if year % 400 == 0: | |
| isLeap = True | |
| return isLeap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment