Skip to content

Instantly share code, notes, and snippets.

@Weyzu
Created August 20, 2017 22:04
Show Gist options
  • Save Weyzu/47283fbf08ecfcec7efcd53a51c80afa to your computer and use it in GitHub Desktop.
Save Weyzu/47283fbf08ecfcec7efcd53a51c80afa to your computer and use it in GitHub Desktop.
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