Skip to content

Instantly share code, notes, and snippets.

@amulyakashyap09
Created December 29, 2017 15:01
Show Gist options
  • Save amulyakashyap09/3e9ec12b387bfd7c28266adf343de00c to your computer and use it in GitHub Desktop.
Save amulyakashyap09/3e9ec12b387bfd7c28266adf343de00c to your computer and use it in GitHub Desktop.
Function to check whether year is leap year or not | Hackerrank
def is_leap(year):
leap = True
if year%4 != 0 or (year%100 == 0 and year%400 != 0):
leap=False
return leap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment