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.
- 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.
- Clone the repository:
git clone https://github.com/soorjya/leap-year-checker.git- Navigate to the project directory:
cd leap-year-checker- Run the program:
python leap_year.py-
Enter a year when prompted.
-
The program will check if the entered year is a leap year or not.
-
The output will indicate whether the year is a leap year or not.
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.Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.