Skip to content

Commit d86e3f0

Browse files
Merge pull request #33 from SammriddhGupta/main
Added LeapYear.py to check for leap year
2 parents 7fc74ce + 142f7a9 commit d86e3f0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: 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)