Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions projects/Leap_Year_Checker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Script Title
<!--Remove the below lines and add yours -->
With the help of this program, you can check whether a year is leap year or not.
### Prerequisites
<!--Remove the below lines and add yours -->
No pre-requisites are required...😀😀
### How to run the script
<!--Remove the below lines and add yours -->
You can run this on any ide or online compiler.

## *Author Name*
<!--Remove the below lines and add yours -->
[Hariom1509](https://github.com/Hariom1509)
12 changes: 12 additions & 0 deletions projects/Leap_Year_Checker/leapyear.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
year = int(input("Enter a year:- ")) # Here, you take the input from the user

if(((year % 4 == 0) and (year % 100 != 0)) or (year % 400 == 0)):
"""
if a year is a multiple of four and a multiple of 100 i.e. if it is a multiple of 400 it is not a leap year
"""
print("{0} is a leap year!!".format(year))
"""
printing the output
"""
else:
print("{0} is not a leap year!!".format(year))