Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Leap Year Checker

The Leap Year Checker is a Python program that determines whether a given year is a leap year or not. It provides a simple and straightforward way to check if a year is divisible by 4, 100, and 400, following the rules of the Gregorian calendar.

Features

  • Easy-to-use: Simply enter a year to check if it is a leap year or not.
  • Accurate: The program follows the rules of the Gregorian calendar to determine leap years.
  • Command-line interface: Run the program from the command line for quick and convenient usage.
  • Well-documented: The code is properly documented, making it easy to understand and modify.

Usage

  1. Clone the repository:
git clone https://github.com/soorjya/leap-year-checker.git
  1. Navigate to the project directory:
cd leap-year-checker
  1. Run the program:
python leap_year.py
  1. Enter a year when prompted.

  2. The program will check if the entered year is a leap year or not.

  3. The output will indicate whether the year is a leap year or not.

Examples

Example 1:

Enter a year: 2020
2020 is a leap year.

Example 2:

Enter a year: 1900
1900 is not a leap year.

Example 3:

Enter a year: 2000
2000 is a leap year.

Contributing

Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.