Skip to content

Instantly share code, notes, and snippets.

@takuma7
Created March 17, 2014 15:17
Show Gist options
  • Save takuma7/9601148 to your computer and use it in GitHub Desktop.
Save takuma7/9601148 to your computer and use it in GitHub Desktop.
# coding: utf8
def isLeapYear(x):
return x%4 == 0 and x%100 != 0 or x%400 == 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment