Python Forum
Tracking leap.py years for gregorian calendar (Exercism org)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tracking leap.py years for gregorian calendar (Exercism org)
#2
I don't see this requirement stated in the problem.
year % 2 == 0
It doesn't matter, anything divisible by 4 is divisible by 2, but it shouldn't be there.

One of your restrictions is wrong.

All leap years are divisible by 4.
Some years divisible by 4 are not leap years. If a year is divisible by 100 it is not a leap year UNLESS it is divisible by 400.
Reply


Messages In This Thread
RE: Tracking leap.py years for gregorian calendar (Exercism org) - by deanhystad - Apr-02-2022, 08:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Frog codility leap sort variant MoreMoney 5 694 Apr-06-2024, 08:47 PM
Last Post: deanhystad
  Task calendar problem humanical 8 1,920 Sep-04-2023, 02:55 PM
Last Post: Pedroski55
  Calculate AGE in years Kessie1971 17 3,826 Apr-26-2023, 03:36 PM
Last Post: deanhystad
  Exercism with Python Gyga_Hawk 8 147,921 Mar-18-2022, 08:53 AM
Last Post: ndc85430
  Meltdown Mitigation (operators + conditionals) beware: Exercism potential spoiler Drone4four 5 2,741 Feb-21-2022, 08:49 AM
Last Post: Gribouillis
  Calendar program louienyy 2 5,075 Mar-30-2020, 01:21 PM
Last Post: louienyy
Sad [Learning] Calendar without modules or list KoFu 5 4,962 Sep-09-2019, 03:25 PM
Last Post: DeaD_EyE
  Problem with code to calculate weekday for leap years! Event 2 2,962 Dec-15-2018, 05:13 PM
Last Post: Event
  Calendar calculations frequency 10 5,770 Nov-13-2018, 07:34 PM
Last Post: frequency
  python age calculator need to find the number of years before they turn 100 not using orangevalley 4 10,162 Mar-26-2018, 04:44 AM
Last Post: PyMan

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020