From efbaaf4c16fedbe912946635cea2584b557bb3b5 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 4 Oct 2018 11:35:43 +0530 Subject: [PATCH] Leap year Program Added --- LeapLyear.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 LeapLyear.py diff --git a/LeapLyear.py b/LeapLyear.py new file mode 100644 index 0000000..38e3041 --- /dev/null +++ b/LeapLyear.py @@ -0,0 +1,10 @@ +# Python Program to Check Leap Year using If Statement + +year = int(input("Please Enter the Year Number you wish: ")) + +if (( year%400 == 0)or (( year%4 == 0 ) and ( year%100 != 0))): + print("%d is a Leap Year" %year) +else: + print("%d is Not the Leap Year" %year) + +