Skip to content

Instantly share code, notes, and snippets.

@popey456963
Created October 25, 2015 11:28
Show Gist options
  • Save popey456963/876ec619e0fd940396f6 to your computer and use it in GitHub Desktop.
Save popey456963/876ec619e0fd940396f6 to your computer and use it in GitHub Desktop.
Leap Year
if n%400==0:print("true")
elif n%100==0:print("false")
elif n%4==0:print("true")
else:print("false")
@popey456963
Copy link
Author

n=int(input())
if n%400==0:print("true")
elif n%100==0:print("false")
elif n%4==0:print("true")
else:print("false")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment