Skip to content

Leap Year: Tells you if a certain year is leap year or not.

License

Notifications You must be signed in to change notification settings

irving-rs/leap_year

Repository files navigation

leap_year

Leap Year: Tells you if a certain year is leap year or not.

Programmed in Python 3.8.5, uses CLI.

Details:

  • The year must be greater than 1582, when the transition between the Julian Calendar and the Greagorian calendar started.
  • A leap year must follow the next statements:
    • The year must be divisible by 4 (year%4 == 0).
    • The year must not be divisible by 100, unless the year is also divisible by 400 (year%100 != 0 or year%400 == 0).

Run:

  • Introducing 2020:

  • Introducing 2100:

  • Introducing a non-valid option:

About

Leap Year: Tells you if a certain year is leap year or not.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages