Skip to content
This repository was archived by the owner on Oct 14, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Python/LeapYear.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
def check(years):
if (years % 4) == 0:
if (years % 100) == 0:
if (years % 400) == 0:
return True
else:
return False
else:
return True
else:
return False

if __name__ == '__main__':
year = int(input("please enter a year:"))
if(check(year)):
print("It is a Leap Year")
else:
print("It is Not a Leap Year")