Skip to content

Commit 142f7a9

Browse files
Check Leap Year
1 parent 09f644f commit 142f7a9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

LeapYear.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
def CheckLeap(year):
2+
if (year%4==0 and year%100!=0) or (year%400==0):
3+
print(year,"is a Leap Year")
4+
else:
5+
print(year,"is not a Leap Year")
6+
7+
year = int(input("Enter the year: "))
8+
CheckLeap(year)

0 commit comments

Comments
 (0)