Skip to content

Commit

Permalink
Merge pull request souravjain540#33 from SammriddhGupta/main
Browse files Browse the repository at this point in the history
Added LeapYear.py to check for leap year
  • Loading branch information
souravjain540 committed Oct 3, 2022
2 parents 7fc74ce + 142f7a9 commit d86e3f0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions LeapYear.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def CheckLeap(year):
if (year%4==0 and year%100!=0) or (year%400==0):
print(year,"is a Leap Year")
else:
print(year,"is not a Leap Year")

year = int(input("Enter the year: "))
CheckLeap(year)

0 comments on commit d86e3f0

Please sign in to comment.