Skip to content

Conversation

@nonocoke
Copy link
Contributor

def isLeapYear(year):

return (not year % 4 and year % 100) or (not year % 400)

return (not (year % 4 and year % 100)) or (not year % 400)

nonocoke added 2 commits June 19, 2018 23:01
(not(year % 4 and year % 100))
@pluieciel
Copy link
Contributor

please try 1900, which is not a leap year.

@yidao620c yidao620c merged commit 5dba1bf into yidao620c:master Sep 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants