Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save meet100ni/cee7e941d978d0ff650cc3ac69b07c1f to your computer and use it in GitHub Desktop.
Save meet100ni/cee7e941d978d0ff650cc3ac69b07c1f to your computer and use it in GitHub Desktop.
Write a Function: HackerRank Solution to find leap year
def is_leap(year):
leap = False
return year % 4 == 0 and (year % 400 == 0 or year % 100 != 0)
year = int(input())
print(is_leap(year))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment